Skip to content

Commit

Permalink
Update test now that SSE is delimited by two newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
inlined committed Jan 23, 2025
1 parent 0847de6 commit b4fb4fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/v2/providers/https.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ describe("onCallGenkit", () => {
const req = request({ data: "answer", headers: { accept: "text/event-stream" } });
const res = await runHandler(f, req);
expect(res.body).to.equal(
['data: {"message":1}', 'data: {"message":2}', 'data: {"result":42}', ""].join("\n")
['data: {"message":1}', 'data: {"message":2}', 'data: {"result":42}', ""].join("\n\n")
);
});

Expand Down

0 comments on commit b4fb4fd

Please sign in to comment.