Tests: loosen chat.abort mismatch timeout

main
Peter Steinberger 2025-12-18 01:20:09 +00:00
parent 272015c701
commit 7bb058215d
1 changed files with 15 additions and 12 deletions

View File

@ -2278,6 +2278,7 @@ describe("gateway server", () => {
const abortRes = await onceMessage(
ws,
(o) => o.type === "res" && o.id === "abort-mismatch-1",
10_000,
);
expect(abortRes.ok).toBe(false);
expect(abortRes.error?.code).toBe("INVALID_REQUEST");
@ -2294,12 +2295,14 @@ describe("gateway server", () => {
const abortRes2 = await onceMessage(
ws,
(o) => o.type === "res" && o.id === "abort-mismatch-2",
10_000,
);
expect(abortRes2.ok).toBe(true);
const sendRes = await onceMessage(
ws,
(o) => o.type === "res" && o.id === "send-mismatch-1",
10_000,
);
expect(sendRes.ok).toBe(true);