diff options
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"); |