diff options
Diffstat (limited to 'tests/auto/blackbox/testdata/concurrent-executor/util.js')
-rw-r--r-- | tests/auto/blackbox/testdata/concurrent-executor/util.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/concurrent-executor/util.js b/tests/auto/blackbox/testdata/concurrent-executor/util.js new file mode 100644 index 000000000..a37a8cbb1 --- /dev/null +++ b/tests/auto/blackbox/testdata/concurrent-executor/util.js @@ -0,0 +1,8 @@ +function sleep(timeInMs) +{ + var referenceTime = new Date(); + var time = null; + do { + time = new Date(); + } while (time - referenceTime < timeInMs); +} |