summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/common/index.js b/test/common/index.js
index bf6b1077d1..904e5a8ef3 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -29,7 +29,6 @@ const os = require('os');
const { exec, execSync, spawn, spawnSync } = require('child_process');
const stream = require('stream');
const util = require('util');
-const Timer = process.binding('timer_wrap').Timer;
const { hasTracing } = process.binding('config');
const { fixturesDir } = require('./fixtures');
const tmpdir = require('./tmpdir');
@@ -600,9 +599,9 @@ exports.nodeProcessAborted = function nodeProcessAborted(exitCode, signal) {
};
exports.busyLoop = function busyLoop(time) {
- const startTime = Timer.now();
+ const startTime = Date.now();
const stopTime = startTime + time;
- while (Timer.now() < stopTime) {}
+ while (Date.now() < stopTime) {}
};
exports.isAlive = function isAlive(pid) {