Tests: loosen chat.abort mismatch timeout
parent
272015c701
commit
7bb058215d
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue