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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user