Skip to content

Commit 7d0f7db

Browse files
committed
test(ai): await asynchronous managed stream fixtures
1 parent 8cafa31 commit 7d0f7db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/ai/src/transports/openai-completions-stream.tool-calls.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ describe("openai completions stream", () => {
337337
}
338338
}
339339

340-
const result = await stream.result();
340+
const result = await (await stream).result();
341341
const cleanTerminal = done || Boolean(finishReason);
342342
expect(terminalEvent).toBe(cleanTerminal ? "done" : "error");
343343
expect(result.stopReason).toBe(cleanTerminal ? "stop" : "error");

0 commit comments

Comments
 (0)