Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/test_health.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def test_writes_file_and_updates_periodically(heartbeat: Heartbeat, monkeypatch:

heartbeat.start()

assert wait_until(lambda: heartbeat.path.exists()) # noqa: PLW0108
assert wait_until(heartbeat.path.exists)
assert heartbeat.path.read_text(encoding="utf-8") == "STAMP1"

monkeypatch.setattr(time, "strftime", lambda fmt: "STAMP2")
Expand All @@ -66,7 +66,7 @@ def test_stop_prevents_further_writes(heartbeat: Heartbeat, monkeypatch: pytest.
"""Test that stopping the heartbeat prevents further writes to the heartbeat file."""
monkeypatch.setattr(time, "strftime", lambda fmt: "BEFORE")
heartbeat.start()
assert wait_until(lambda: heartbeat.path.exists()) # noqa: PLW0108
assert wait_until(heartbeat.path.exists)
assert heartbeat.path.read_text(encoding="utf-8") == "BEFORE"

heartbeat.stop()
Expand Down