Commit de9293a
committed
test(goal): make unreadable archive fixture portable
Problem:
The explicit legacy archive fail-closed test passed on Unix but failed on Windows because chmod zero does not make a file unreadable there.
Root cause:
The fixture relied on Unix permission semantics instead of creating a platform-independent archive read failure.
Fix:
Replace task_spec.json with a directory so archive decoding fails deterministically on every supported platform.
Verification:
go test ./internal/control -count=1
GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go test -c ./internal/control1 parent a8a2a83 commit de9293a
1 file changed
Lines changed: 4 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
595 | 595 | | |
596 | 596 | | |
597 | 597 | | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | 598 | | |
602 | 599 | | |
603 | 600 | | |
604 | 601 | | |
605 | | - | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
606 | 606 | | |
607 | 607 | | |
608 | | - | |
609 | 608 | | |
610 | 609 | | |
611 | 610 | | |
| |||
0 commit comments