test(cron): pin that the tick-lock probe names the lock file

The tick-lock case only asserted probe_store() returned an error, which any other
probe failure would also satisfy. Assert the error names .tick.lock so the case
proves that branch fired.

Gate r1 (PM12, quality) Low finding.
This commit is contained in:
kshitijk4poor
2026-10-07 17:13:00 +05:30
committed by kshitij
parent 844e514e67
commit 2a66c7f2ee

View File

@@ -369,7 +369,7 @@ def test_unwritable_store_is_shown_in_cron_status_and_announced_once(cron_store,
lock.write_text("")
os.chmod(lock, 0o400)
try:
assert store_health.probe_store(cron_dir) is not None
assert store_health.probe_store(cron_dir).filename == str(lock)
finally:
os.chmod(lock, 0o600)