fix: 学时已增加时不再把心跳判成失败

This commit is contained in:
2026-11-17 11:59:12 +08:00
parent 85e52b972c
commit 361bdcb87b
2 changed files with 42 additions and 9 deletions
+4
View File
@@ -133,6 +133,10 @@ def test_stall_gives_up_after_five_minutes_without_progress() -> None:
assert moved.stuck(40, 200) is False
assert moved.stuck(40, 99) is False
assert moved.stuck(40, 1) is True
credited = _Stall()
assert credited.stuck(8.33, 30, 4) is False
assert credited.stuck(8.33, 200, 5) is False
assert credited.stuck(10.41, 30, 5) is False
def test_jitter_never_sends_early() -> None: