fix(jobs): watchdog checks every six hours, the beat stays daily
This commit is contained in:
1 parent
f6cb17acaf
commit
d8ab6bb72c
3 files changed
+12
-7
No files matched your search
@@ -253,7 +253,7 @@ class FakeRoom:
|
||||
|
||||
|
||||
class FakeRun:
|
||||
def __init__(self, cron="42 17 * * *"):
|
||||
def __init__(self, cron="42 */6 * * *"):
|
||||
self.job = SimpleNamespace(cron=cron, name="сторож")
|
||||
self.scheduler = SimpleNamespace(tz=WARSAW)
|
||||
self.spawned = []
|
||||
@@ -280,7 +280,7 @@ async def test_watch_job_prints_ack_and_spawns_alarm(tmp_path, monkeypatch):
|
||||
|
||||
assert room.limit == 25 # окно запрошено явным размером
|
||||
assert room.said and room.said[0].startswith(f"ack {PEER} ")
|
||||
assert "res=24h" in room.said[0]
|
||||
assert "res=6h" in room.said[0]
|
||||
assert len(run.spawned) == 1
|
||||
agent, title, text = run.spawned[0]
|
||||
assert agent == "beaver-triage" and title == "сторож"
|
||||
|
||||
Reference in new issue
Block a user