From 068dca3366f9a5ba6326e44821dba7ed37564ac8 Mon Sep 17 00:00:00 2001 From: Nima Karimi Date: Thu, 15 Jan 2026 14:56:45 +0000 Subject: [PATCH] Tests: apply suite timeout in node bridge test --- .../bridge/server.enables-keepalive-sockets.test.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/infra/bridge/server.enables-keepalive-sockets.test.ts b/src/infra/bridge/server.enables-keepalive-sockets.test.ts index 910675d84..a6720a24a 100644 --- a/src/infra/bridge/server.enables-keepalive-sockets.test.ts +++ b/src/infra/bridge/server.enables-keepalive-sockets.test.ts @@ -9,6 +9,9 @@ import { pollUntil } from "../../../test/helpers/poll.js"; import { approveNodePairing, listNodePairing } from "../node-pairing.js"; import { configureNodeBridgeSocket, startNodeBridgeServer } from "./server.js"; +const pairingTimeoutMs = process.platform === "win32" ? 8000 : 3000; +const suiteTimeoutMs = process.platform === "win32" ? 20000 : 10000; + function createLineReader(socket: net.Socket) { let buffer = ""; const pending: Array<(line: string) => void> = []; @@ -55,12 +58,8 @@ async function waitForSocketConnect(socket: net.Socket) { }); } -describe("node bridge server", () => { +describe("node bridge server", { timeout: suiteTimeoutMs }, () => { let baseDir = ""; - const pairingTimeoutMs = process.platform === "win32" ? 8000 : 3000; - const suiteTimeoutMs = process.platform === "win32" ? 20000 : 10000; - - vi.setTimeout(suiteTimeoutMs); const pickNonLoopbackIPv4 = () => { const ifaces = os.networkInterfaces();