Refuse a connectTimeout Node's timers cannot hold, and pin the refusals the tests missed
Mirror / push (push) Successful in 5s
Test / lint (pull_request) Successful in 20s
Test / test (18) (pull_request) Successful in 26s
Test / test (20) (pull_request) Successful in 19s
Test / test (22) (pull_request) Successful in 20s
Test / test (24) (pull_request) Successful in 19s
Test / test (26) (pull_request) Successful in 20s

This commit is contained in:
2026-09-20 18:12:39 +02:00
parent 17447bbe3a
commit 84174b4a5b
6 changed files with 38 additions and 16 deletions
+1 -2
View File
@@ -94,8 +94,7 @@ function openSocket(options: ClientOptions): Promise<Result<{ sock: Socket }>> {
}
const settle = (result: Result<{ sock: Socket }>): void => {
if (timer) clearTimeout(timer);
clearTimeout(timer);
sock.removeListener('error', onError);
signal?.removeEventListener('abort', onAbort);
resolve(result);