test: increase timeouts on some unref timers tests
Fix: https://github.com/nodejs/node/issues/5351 Refs: https://github.com/nodejs/node/pull/4561 PR-URL: https://github.com/nodejs/node/pull/5352 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
This commit is contained in:
parent
e854f60585
commit
65cd2a0f96
@ -9,7 +9,7 @@ const domain = require('domain');
|
||||
|
||||
// Crazy stuff to keep the process open,
|
||||
// then close it when we are actually done.
|
||||
const TEST_DURATION = common.platformTimeout(100);
|
||||
const TEST_DURATION = common.platformTimeout(1000);
|
||||
const keepOpen = setTimeout(function() {
|
||||
throw new Error('Test timed out. keepOpen was not canceled.');
|
||||
}, TEST_DURATION);
|
||||
|
@ -31,7 +31,7 @@ var nbTimeouts = 0;
|
||||
* and thus expect 5 timers to be able to fire in under 100 ms.
|
||||
*/
|
||||
const N = 5;
|
||||
const TEST_DURATION = 100;
|
||||
const TEST_DURATION = 1000;
|
||||
|
||||
timers.unenroll(someObject);
|
||||
timers.enroll(someObject, 1);
|
||||
|
@ -4,7 +4,7 @@
|
||||
*/
|
||||
const common = require('../common');
|
||||
|
||||
const TEST_DURATION = common.platformTimeout(100);
|
||||
const TEST_DURATION = common.platformTimeout(1000);
|
||||
const N = 3;
|
||||
var nbIntervalFired = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user