diff options
Diffstat (limited to 'test/common')
-rw-r--r-- | test/common/README.md | 5 | ||||
-rw-r--r-- | test/common/index.js | 7 | ||||
-rw-r--r-- | test/common/index.mjs | 2 |
3 files changed, 0 insertions, 14 deletions
diff --git a/test/common/README.md b/test/common/README.md index 5f8b6cb309..11827d9743 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -45,11 +45,6 @@ tasks. Takes `whitelist` and concats that with predefined `knownGlobals`. -### busyLoop(time) -* `time` [<number>][] - -Blocks for `time` amount of time. - ### canCreateSymLink() * return [<boolean>][] diff --git a/test/common/index.js b/test/common/index.js index 09b7f55778..1be7872081 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -481,12 +481,6 @@ function nodeProcessAborted(exitCode, signal) { } } -function busyLoop(time) { - const startTime = Date.now(); - const stopTime = startTime + time; - while (Date.now() < stopTime) {} -} - function isAlive(pid) { try { process.kill(pid, 'SIGCONT'); @@ -744,7 +738,6 @@ function runWithInvalidFD(func) { module.exports = { allowGlobals, buildType, - busyLoop, canCreateSymLink, childShouldThrowAndAbort, createZeroFilledFile, diff --git a/test/common/index.mjs b/test/common/index.mjs index 54f6dc7f17..a5774fc008 100644 --- a/test/common/index.mjs +++ b/test/common/index.mjs @@ -39,7 +39,6 @@ const { skip, ArrayStream, nodeProcessAborted, - busyLoop, isAlive, expectWarning, expectsError, @@ -86,7 +85,6 @@ export { skip, ArrayStream, nodeProcessAborted, - busyLoop, isAlive, expectWarning, expectsError, |