From fb75a95c7cb046bfa0ce894b10cedee74f0db8fe Mon Sep 17 00:00:00 2001 From: "nekomimi.pet" Date: Tue, 27 Oct 2026 05:03:14 -0400 Subject: [PATCH] warm test: wait for the second ping's request row, which lands after the provider sees the ping --- test/e2e/warm_test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/e2e/warm_test.py b/test/e2e/warm_test.py index 434890ea..dbeec158 100644 --- a/test/e2e/warm_test.py +++ b/test/e2e/warm_test.py @@ -357,8 +357,12 @@ job.id""" self.assertEqual(ping, {**turn, "max_output_tokens": 16}) # The request rows carry the same prefix identity and cache marks as - # the turn they repeat, and never a transcript row of their own. - rows = self.rows(parent) + # the turn they repeat, and never a transcript row of their own. A + # ping's row is written after its stream ends, so the provider can see + # the second ping before the daemon records it. + rows = wait_for( + lambda: self.rows(parent) if len(self.rows(parent)) == 3 else None + ) self.assertEqual( [row["kind"] for row in rows], ["turn", "background", "background"] ) -- knotmirror 0.0.1