Skip to content

Commit c6f9afe

Browse files
jakecastellitargos
authored andcommitted
test: use platform timeout
PR-URL: #54591 Refs: #54499 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
1 parent 8f49b7c commit c6f9afe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-http-outgoing-end-cork.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ const common = require('../common');
33
const assert = require('assert');
44
const http = require('http');
55

6-
const REQ_TIMEOUT = 500; // Set max ms of request time before abort
6+
const REQ_TIMEOUT = common.platformTimeout(500); // Set max ms of request time before abort
77

88
// Set total allowed test timeout to avoid infinite loop
99
// that will hang test suite
10-
const TOTAL_TEST_TIMEOUT = 1000;
10+
const TOTAL_TEST_TIMEOUT = common.platformTimeout(1000);
1111

1212
// Placeholder for sockets handled, to make sure that we
1313
// will reach a socket re-use case.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy