summaryrefslogtreecommitdiff
path: root/jstests/parallel
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-01-04 09:08:02 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2017-01-04 09:08:02 -0500
commite3a26f82b1b7a51b3eb6083c5ba86ee5acd30690 (patch)
tree80e85d94ce52de2474750e090889686a11f4c4b6 /jstests/parallel
parentceb00c489780662eeeaf092f19ccc40ab9c2e48d (diff)
downloadmongo-e3a26f82b1b7a51b3eb6083c5ba86ee5acd30690.tar.gz
SERVER-26143 Fix time check for jstests/parallel/checkMultiThread.js
Diffstat (limited to 'jstests/parallel')
-rw-r--r--jstests/parallel/checkMultiThread.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/jstests/parallel/checkMultiThread.js b/jstests/parallel/checkMultiThread.js
index c4c6ccd48f0..28aef1f96e7 100644
--- a/jstests/parallel/checkMultiThread.js
+++ b/jstests/parallel/checkMultiThread.js
@@ -12,7 +12,5 @@ a.start();
b.start();
a.join();
b.join();
-assert.lt(
- a.returnData().getMilliseconds(), start.getMilliseconds() + 15000, "A took more than 15s");
-assert.lt(
- b.returnData().getMilliseconds(), start.getMilliseconds() + 15000, "B took more than 15s");
+assert.lt(a.returnData() - start, 15000, "A took more than 15s");
+assert.lt(b.returnData() - start, 15000, "B took more than 15s");