diff --git a/tests/test_reply_moment.py b/tests/test_reply_moment.py index 7687150f..d26a4a2c 100644 --- a/tests/test_reply_moment.py +++ b/tests/test_reply_moment.py @@ -364,7 +364,10 @@ def test_a_rule_hold_on_a_closing_turn_does_not_mark_a_rewrite(tmp_path): with http_sink(by_path={"/api/plugin/reply-rules": HELD}) as (port, seen): _run(tmp_path, port, t) assert _run(tmp_path, port, t, active=True) == "" - assert len(seen) == 1 + # One reply sent; the rewrite after a rule hold sends nothing. (The hold + # itself is also reported as a gate stop, a separate request.) + assert [e["_path"] for e in seen if e["_path"] == "/api/plugin/reply-rules"] == [ + "/api/plugin/reply-rules"] def test_the_hook_says_nothing_when_nothing_holds(tmp_path):