From 72b90fd5f5f229d51fff46165a91a5aae0246bab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Mon, 2 May 2022 19:33:42 +0200 Subject: [PATCH] test: reduce impact of flaky HTTP server tests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs: https://github.com/nodejs/node/issues/42741 PR-URL: https://github.com/nodejs/node/pull/42926 Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Antoine du Hamel --- 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,