Skip to content

Commit 92f8e03

Browse files
authored
fix(test): use effect helper in snapshot race test (#20567)
1 parent f6fd43e commit 92f8e03

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/opencode/test/session/snapshot-tool-race.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ it.live("tool execution produces non-empty session diff (snapshot race)", () =>
212212
expect(fileExists).toBe(true)
213213

214214
// Verify the tool call completed (in the first assistant message)
215-
const allMsgs = yield* Effect.promise(() => MessageV2.filterCompacted(MessageV2.stream(session.id)))
215+
const allMsgs = yield* MessageV2.filterCompactedEffect(session.id)
216216
const tool = allMsgs
217217
.flatMap((m) => m.parts)
218218
.find((p): p is MessageV2.ToolPart => p.type === "tool" && p.tool === "bash")

0 commit comments

Comments
 (0)