From 06c1abefb7c2790630301f046e10c39deb4367ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 30 Apr 2022 13:03:10 +0000 Subject: [PATCH] test: reduce impact of flaky HTTP server tests Refs: https://github.com/nodejs/node/issues/42741 --- test/parallel/parallel.status | 3 +++ test/parallel/test-http-server-headers-timeout-keepalive.js | 2 +- test/parallel/test-http-server-request-timeout-keepalive.js | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/test/parallel/parallel.status b/test/parallel/parallel.status index 403752346856cd..98511b1c6d7f69 100644 --- a/test/parallel/parallel.status +++ b/test/parallel/parallel.status @@ -21,6 +21,9 @@ test-fs-rmdir-recursive: PASS, FLAKY test-domain-error-types: PASS,FLAKY [$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 [$arch==arm || $arch==arm64] # https://github.com/nodejs/node/pull/31178 diff --git a/test/parallel/test-http-server-headers-timeout-keepalive.js b/test/parallel/test-http-server-headers-timeout-keepalive.js index 05531087ed8321..ba82cb0e0c9cb1 100644 --- a/test/parallel/test-http-server-headers-timeout-keepalive.js +++ b/test/parallel/test-http-server-headers-timeout-keepalive.js @@ -24,7 +24,7 @@ function performRequestWithDelay(client, firstDelay, secondDelay, closeAfter) { }, firstDelay + secondDelay).unref(); } -const headersTimeout = common.platformTimeout(2000); +const headersTimeout = common.platformTimeout(5000); const server = createServer({ headersTimeout, requestTimeout: 0, diff --git a/test/parallel/test-http-server-request-timeout-keepalive.js b/test/parallel/test-http-server-request-timeout-keepalive.js index 2466e1ee7a953c..eb6d64b2f2bb3b 100644 --- a/test/parallel/test-http-server-request-timeout-keepalive.js +++ b/test/parallel/test-http-server-request-timeout-keepalive.js @@ -24,7 +24,7 @@ function performRequestWithDelay(client, firstDelay, secondDelay, closeAfter) { }, firstDelay + secondDelay).unref(); } -const requestTimeout = common.platformTimeout(2000); +const requestTimeout = common.platformTimeout(5000); const server = createServer({ headersTimeout: 0, requestTimeout,