From 780f478d0ff26bfd46bc8c8d8334c69eb8a629e0 Mon Sep 17 00:00:00 2001 From: jakecastelli Date: Wed, 28 Aug 2024 01:15:19 +0930 Subject: [PATCH] test: use platform timeout PR-URL: https://github.com/nodejs/node/pull/54591 Refs: https://github.com/nodejs/node/issues/54499 Reviewed-By: Luigi Pinca Reviewed-By: Richard Lau Reviewed-By: James M Snell Reviewed-By: Moshe Atlow --- test/parallel/test-http-outgoing-end-cork.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-http-outgoing-end-cork.js b/test/parallel/test-http-outgoing-end-cork.js index 6a217238c447c4..db852bf96df66f 100644 --- a/test/parallel/test-http-outgoing-end-cork.js +++ b/test/parallel/test-http-outgoing-end-cork.js @@ -3,11 +3,11 @@ const common = require('../common'); const assert = require('assert'); const http = require('http'); -const REQ_TIMEOUT = 500; // Set max ms of request time before abort +const REQ_TIMEOUT = common.platformTimeout(500); // Set max ms of request time before abort // Set total allowed test timeout to avoid infinite loop // that will hang test suite -const TOTAL_TEST_TIMEOUT = 1000; +const TOTAL_TEST_TIMEOUT = common.platformTimeout(1000); // Placeholder for sockets handled, to make sure that we // will reach a socket re-use case.