Skip to content

Commit 8a5ec7b

Browse files
committed
test(server): finish workflow reads before changing transcripts
1 parent 18656a3 commit 8a5ec7b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎apps/server/src/orchestration-v2/Adapters/ClaudeAdapterV2.test.ts‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13172,8 +13172,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
1317213172
NodePath.join(harness.transcriptDir, "agent-a1.jsonl"),
1317313173
'{"type":"assistant","message":{"role":"assistant","id":"msg_a1","content":[{"type":"text","text":"A1 continued"}]}}\n',
1317413174
);
13175-
yield* Queue.offer(
13176-
harness.sdkMessages,
13175+
yield* harness.offerAndWait(
1317713176
workflowSnapshot({ uuid: "00000000-0000-4000-8000-000000001015", state: "done" }),
1317813177
);
1317913178
yield* awaitUntil(
@@ -13196,8 +13195,7 @@ describe("ClaudeAdapterV2 background wake turns", () => {
1319613195
NodePath.join(harness.transcriptDir, "agent-a2.jsonl"),
1319713196
'{"type":"assistant","message":{"role":"assistant","id":"msg_a2","content":[{"type":"text","text":"A2 from the transcript"}]}}\n',
1319813197
);
13199-
yield* Queue.offer(
13200-
harness.sdkMessages,
13198+
yield* harness.offerAndWait(
1320113199
workflowSnapshot({ uuid: "00000000-0000-4000-8000-000000001016", state: "done" }),
1320213200
);
1320313201
yield* awaitUntil(

0 commit comments

Comments
 (0)