test: increase timeouts on some unref timers tests
authorJeremiah Senkpiel <fishrock123@rocketmail.com>
Sun, 21 Feb 2016 16:05:55 +0000 (11:05 -0500)
committerMyles Borins <mborins@us.ibm.com>
Mon, 21 Mar 2016 19:57:58 +0000 (12:57 -0700)
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>
test/parallel/test-timers-unref-active-unenrolled-disposed.js
test/parallel/test-timers-unref-active.js
test/parallel/test-timers-unrefd-interval-still-fires.js

index ac22cd6..675da01 100644 (file)
@@ -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);
index ad72ac4..6902727 100644 (file)
@@ -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);
index 172da8b..39bb2cd 100644 (file)
@@ -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;