mirror of
https://github.com/nodejs/node.git
synced 2024-11-25 08:19:38 +01:00
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 <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>
This commit is contained in:
parent
a72c964b45
commit
780f478d0f
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user