fix: abort embedded prompts on cancel

This commit is contained in:
Peter Steinberger
2026-01-18 05:17:28 +00:00
parent 89c5185f1c
commit 016693a1f5
16 changed files with 128 additions and 44 deletions

View File

@@ -14,10 +14,10 @@ import {
installGatewayTestHooks();
describe("gateway server auth/connect", () => {
test("closes silent handshakes after timeout", { timeout: 15_000 }, async () => {
test("closes silent handshakes after timeout", { timeout: 30_000 }, async () => {
const { server, ws } = await startServerWithClient();
const closed = await new Promise<boolean>((resolve) => {
const timer = setTimeout(() => resolve(false), 12_000);
const timer = setTimeout(() => resolve(false), 25_000);
ws.once("close", () => {
clearTimeout(timer);
resolve(true);