diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2017-01-04 09:08:02 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2017-01-04 09:08:02 -0500 |
commit | e3a26f82b1b7a51b3eb6083c5ba86ee5acd30690 (patch) | |
tree | 80e85d94ce52de2474750e090889686a11f4c4b6 /jstests/parallel | |
parent | ceb00c489780662eeeaf092f19ccc40ab9c2e48d (diff) | |
download | mongo-e3a26f82b1b7a51b3eb6083c5ba86ee5acd30690.tar.gz |
SERVER-26143 Fix time check for jstests/parallel/checkMultiThread.js
Diffstat (limited to 'jstests/parallel')
-rw-r--r-- | jstests/parallel/checkMultiThread.js | 6 |
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"); |