Skip to content

Commit 27c2e13

Browse files
author
PR Batch Tester
committed
test(server): retain narrowed text across the assertion callback
1 parent ae9a341 commit 27c2e13

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
@@ -4157,7 +4157,8 @@ it.effect("reschedules idle text when a newer snapshot precedes a failed write's
41574157
return;
41584158
if ((yield* Ref.getAndUpdate(attempts, (n) => n + 1)) < 2)
41594159
return yield* Effect.die(new Error("disk I/O error"));
4160-
yield* Ref.update(childWrites, (current) => [...current, event.turnItem.text]);
4160+
const { text } = event.turnItem;
4161+
yield* Ref.update(childWrites, (current) => [...current, text]);
41614162
}),
41624163
}).pipe(Effect.forkChild);
41634164
const marker = streamedMessageEvent({

0 commit comments

Comments
 (0)