Commit 31e35ba
committed
backup: #904 v20 - fix TestEncodeSnapshotRejectsZeroAdapterSet to pin the right guard
Claude v19 caught: the v19 MANIFEST.json gate (added to checkInputRoot)
moved this test's failure point from the zero-adapter guard (the
invariant the test name and comment claim it pins) to the
MANIFEST.json-missing guard. The test still passed both assertions
(non-nil error, buf.Len()==0) but for the wrong reason.
Adding AllowMissingManifest: true so checkInputRoot waves through the
missing manifest and validateEncodeOptions proceeds to the
zero-adapter check that's the actual subject of the test.
The other 10 synthetic-fixture EncodeSnapshot callers in v19 already
got this flag; this one was missed because its rejection assertions
were satisfied by the new guard, so the failure wasn't a hard error.
Test-only; no behavior change. Tests + lint green.1 parent f246ca9 commit 31e35ba
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
436 | 436 | | |
437 | 437 | | |
438 | 438 | | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
439 | 446 | | |
440 | 447 | | |
441 | 448 | | |
| |||
0 commit comments