Skip to content

The agent that grows with you

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

kshitijk4poor2a66c7f2eefc
diff --git a/tests/cron/test_due_scan_save_failure.py b/tests/cron/test_due_scan_save_failure.py
index f797f2eb5a1..fe191e1dde2 100644
--- a/tests/cron/test_due_scan_save_failure.py
+++ b/tests/cron/test_due_scan_save_failure.py
@@ -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)