From 0f54553a990306d7b090fe78f95ea7948f6a8957 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Sun, 21 Feb 2016 11:05:55 -0500 Subject: [PATCH] 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 Reviewed-By: James M Snell Reviewed-By: Minwoo Jung --- test/parallel/test-timers-unref-active-unenrolled-disposed.js | 2 +- test/parallel/test-timers-unref-active.js | 2 +- test/parallel/test-timers-unrefd-interval-still-fires.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-timers-unref-active-unenrolled-disposed.js b/test/parallel/test-timers-unref-active-unenrolled-disposed.js index ac22cd6e6a7144..675da017173e88 100644 --- a/test/parallel/test-timers-unref-active-unenrolled-disposed.js +++ b/test/parallel/test-timers-unref-active-unenrolled-disposed.js @@ -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); diff --git a/test/parallel/test-timers-unref-active.js b/test/parallel/test-timers-unref-active.js index ad72ac4047747b..69027277ea0ff2 100644 --- a/test/parallel/test-timers-unref-active.js +++ b/test/parallel/test-timers-unref-active.js @@ -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); diff --git a/test/parallel/test-timers-unrefd-interval-still-fires.js b/test/parallel/test-timers-unrefd-interval-still-fires.js index 172da8bb954fa7..39bb2cdb138205 100644 --- a/test/parallel/test-timers-unrefd-interval-still-fires.js +++ b/test/parallel/test-timers-unrefd-interval-still-fires.js @@ -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;