diff options
Diffstat (limited to 'test/sequential/test-timers-blocking-callback.js')
-rw-r--r-- | test/sequential/test-timers-blocking-callback.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/sequential/test-timers-blocking-callback.js b/test/sequential/test-timers-blocking-callback.js index 435b69d1fa..3d05a538ea 100644 --- a/test/sequential/test-timers-blocking-callback.js +++ b/test/sequential/test-timers-blocking-callback.js @@ -25,7 +25,6 @@ const common = require('../common'); const assert = require('assert'); -const Timer = process.binding('timer_wrap').Timer; const TIMEOUT = 100; @@ -49,7 +48,7 @@ function blockingCallback(retry, callback) { ++nbBlockingCallbackCalls; if (nbBlockingCallbackCalls > 1) { - latestDelay = Timer.now() - timeCallbackScheduled; + latestDelay = Date.now() - timeCallbackScheduled; // Even if timers can fire later than when they've been scheduled // to fire, they shouldn't generally be more than 100% late in this case. // But they are guaranteed to be at least 100ms late given the bug in @@ -68,7 +67,7 @@ function blockingCallback(retry, callback) { // block by busy-looping to trigger the issue common.busyLoop(TIMEOUT); - timeCallbackScheduled = Timer.now(); + timeCallbackScheduled = Date.now(); setTimeout(blockingCallback.bind(null, retry, callback), TIMEOUT); } } |