test: keep CONNECT timeout regression deterministic

This commit is contained in:
jesse-merhi
2026-05-04 02:30:40 +10:00
committed by clawsweeper
parent 4bc048549b
commit b3e1342009

View File

@@ -161,7 +161,6 @@ export async function openHttpConnectTunnel(params: HttpConnectTunnelParams): Pr
timeout = setTimeout(() => {
fail(new Error(`Proxy CONNECT timed out after ${Math.trunc(params.timeoutMs ?? 0)}ms`));
}, Math.trunc(params.timeoutMs));
timeout.unref?.();
}
const proxyHost = resolveProxyHost(proxy);