Repository navigation
Commit 84a2cbe
committed
tests: clear the sealed attribute before corrupting a cached payload
`warm_hits_reject_corrupted_cached_bytes_with_a_valid_header` rewrites a byte of
a cached payload to prove the warm path rejects it. The Unix arm relaxes the file
mode to 0600 first; Windows has no equivalent, so the payload stayed read-only as
the cache seals it and the write failed with `Access is denied` instead of
exercising the rejection path.
The Windows arm clears the read-only attribute before the rewrite. The assertion
is untouched: the test still requires the warm path to reject the corrupted bytes.
Validation: the test passes on x86_64-pc-windows-msvc.
Design-Signed-Off-By: Hermes Agent (deepseek-v4.1-flash); design-review=1c011 parent 4999b11 commit 84a2cbe
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1626 | 1626 | | |
1627 | 1627 | | |
1628 | 1628 | | |
| 1629 | + | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
1629 | 1637 | | |
1630 | 1638 | | |
1631 | 1639 | | |
| |||
0 commit comments