test: relax node connect challenge timeout in approval suite

This commit is contained in:
Peter Steinberger
2026-02-22 12:22:53 +00:00
parent 3a6e0e70f6
commit c61c9e121a

View File

@@ -168,7 +168,9 @@ describe("node.invoke approval bypass", () => {
const client = new GatewayClient({
url: `ws://127.0.0.1:${port}`,
connectDelayMs: 0,
// Keep challenge timeout realistic in tests; 0 maps to a 250ms timeout and can
// trigger reconnect backoff loops under load.
connectDelayMs: 2_000,
token: "secret",
role: "node",
clientName: GATEWAY_CLIENT_NAMES.NODE_HOST,