Commit 8e51a61229b for nodejs
commit 8e51a61229b158bd8fd635892cc01268bba9b330
Author: Filip Skokan <panva.ip@gmail.com>
Date: Sat Sep 26 12:35:43 2026 +0200
test: deflake http headers timeout keepalive
The second request in the headers-timeout test could finish its headers
before the next periodic timeout check ran. Leave it incomplete across
multiple checking intervals before sending the remaining headers.
Remove both macOS keepalive flaky expectations. c3aa86d6784 already
extended the request-timeout test's margin to allow multiple checks.
Refs: https://github.com/nodejs/node/issues/42741
Signed-off-by: Filip Skokan <panva.ip@gmail.com>
Assisted-by: Claude, Codex
PR-URL: https://github.com/nodejs/node/pull/66320
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status
index 6f9ebb415a4..77ec92bc5d9 100644
--- a/test/parallel/parallel.status
+++ b/test/parallel/parallel.status
@@ -27,9 +27,6 @@ test-fs-cp-async-symlink-points-to-dest: SKIP
[$system==linux]
[$system==macos]
-# https://github.com/nodejs/node/issues/42741
-test-http-server-headers-timeout-keepalive: PASS,FLAKY
-test-http-server-request-timeout-keepalive: PASS,FLAKY
# https://github.com/nodejs/node/issues/60050
test-cluster-dgram-1: SKIP
diff --git a/test/parallel/test-http-server-headers-timeout-keepalive.js b/test/parallel/test-http-server-headers-timeout-keepalive.js
index 493c730cb7a..1a9d060c9ff 100644
--- a/test/parallel/test-http-server-headers-timeout-keepalive.js
+++ b/test/parallel/test-http-server-headers-timeout-keepalive.js
@@ -70,7 +70,7 @@ server.listen(0, common.mustCall(() => {
performRequestWithDelay(
client,
headersTimeout / 5,
- headersTimeout,
+ headersTimeout * 2,
true
);
}, defer).unref();