TypeScript
test(server): wait for a workflow member's late reply to reach the test's event log (#21310)
Julius Marminge1c12af22d633
diff --git a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.tsindex 808029a11f8..8a06dddeeec 100644--- a/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts+++ b/apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts@@ -15079,6 +15079,9 @@ describe("ClaudeAdapterV2 background wake turns", () => {yield* TestClock.adjust("100 millis");}yield* Fiber.join(notified);+ // The reply is read with real file I/O after the clock moves, and its+ // events reach the collector fiber after the frame counts as processed.+ yield* awaitUntil(() => texts(2).at(-1) === "a2 found README.md", "a2 reply");assert.deepEqual(texts(2), ["Reply with exactly: A2",...early("a2"),