Commit Graph

3 Commits

Author SHA1 Message Date
facd4fb122 tests: the retry test needs a real collision and a fresh probe name
The mocked open succeeded on its third call whatever the path, so generating the
probe name once before the loop still passed. The test now pre-creates the first
probe, patches secrets.token_hex with two names and keeps the real os.open.
Reported by andrew-ai on the carry PR.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-02 00:05:41 +01:00
7d05a02dea tests: make the published_mode fallback test check what it claims
The old assertion (S_IMODE(mode) == mode) passes for any 9-bit integer, even 0.
The test now mocks new_file_mode, checks the target's own directory is probed and
the sentinel is returned, and a second test checks an existing file keeps its mode.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-12-01 23:35:10 +01:00
b1629f032c test: cover probe collision retries and fallback in file_mode 2026-11-25 13:55:39 +05:00