Skip to content

Commit 015ca8f

Browse files
committed
test(streaming): harden relay regression coverage
1 parent 2514bd2 commit 015ca8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎tests/responses-image-gen-repair.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ describe("Responses image-gen call restoration", () => {
347347
expect(isEagerRelaySseResponse(response)).toBe(
348348
process.platform === "win32" || process.platform === "darwin",
349349
);
350-
expect(clientBody.length).toBeGreaterThan(largeEcho.length);
350+
expect(clientBody).toContain(largeEcho);
351351
expect(clientBody).not.toContain("image_gen__imagegen");
352352
expect(clientBody.match(/\"namespace\":\"image_gen\"/g)).toHaveLength(3);
353353
expect(clientBody.match(/event: response\.completed/g)).toHaveLength(1);

0 commit comments

Comments
 (0)