diff --git a/tests/responses-websocket.test.ts b/tests/responses-websocket.test.ts index ca11303f81..0414cf5503 100644 --- a/tests/responses-websocket.test.ts +++ b/tests/responses-websocket.test.ts @@ -668,7 +668,7 @@ test("Responses WS: a title-persona side request rides the lane transport instea const events = await f.turn([user("title over the WS lane")], undefined, {}, titlePeer); const done = events.find(e => e.type === "response.completed"); assert.ok(done, JSON.stringify(events)); - const log = fs.readFileSync(f.logPath, "utf8"); + const log = await readLogUntil(f.logPath, [/side request \(agent=title\)/]); assert.match(log, /side request \(agent=title\)/); assert.doesNotMatch(log, /Unsupported request in Responses WebSocket transport/); } finally {