perf: add zero-delay gateway client connect for tests

This commit is contained in:
Peter Steinberger
2026-02-13 19:31:05 +00:00
parent 5645f227f6
commit c801ffdf99
5 changed files with 13 additions and 1 deletions

View File

@@ -253,6 +253,7 @@ const connectNode = async (
const client = new GatewayClient({
url: `ws://127.0.0.1:${inst.port}`,
connectDelayMs: 0,
token: inst.gatewayToken,
clientName: GATEWAY_CLIENT_NAMES.NODE_HOST,
clientDisplayName: label,
@@ -327,6 +328,7 @@ const connectStatusClient = async (
const client = new GatewayClient({
url: `ws://127.0.0.1:${inst.port}`,
connectDelayMs: 0,
token: inst.gatewayToken,
clientName: GATEWAY_CLIENT_NAMES.CLI,
clientDisplayName: `status-${inst.name}`,

View File

@@ -94,6 +94,7 @@ async function connectClient(params: { url: string; token: string }) {
};
const client = new GatewayClient({
url: params.url,
connectDelayMs: 0,
token: params.token,
clientName: GATEWAY_CLIENT_NAMES.TEST,
clientDisplayName: "vitest-timeout-fallback",