Skip to content

Commit 5fe1333

Browse files
author
PR Batch Tester
committed
test(server): retain narrowed text across the assertion callback
1 parent e59ee30 commit 5fe1333

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎apps/server/src/orchestration-v2/RunExecutionService.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4205,7 +4205,8 @@ it.effect("reschedules idle text when a newer snapshot precedes a failed write's
42054205
return;
42064206
if ((yield* Ref.getAndUpdate(attempts, (n) => n + 1)) < 2)
42074207
return yield* Effect.die(new Error("disk I/O error"));
4208-
yield* Ref.update(childWrites, (current) => [...current, event.turnItem.text]);
4208+
const { text } = event.turnItem;
4209+
yield* Ref.update(childWrites, (current) => [...current, text]);
42094210
}),
42104211
}).pipe(Effect.forkChild);
42114212
const marker = streamedMessageEvent({

0 commit comments

Comments
 (0)