[SERVER-26143] Fix time check for jstests/parallel/checkMultiThread.js Created: 16/Sep/16  Updated: 05/Apr/17  Resolved: 04/Jan/17

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.5.2

Type: Bug Priority: Major - P3
Reporter: Jonathan Abrahams Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: TIG 2017-01-02
Participants:

 Description   

The time check in the checkMultiThread.js test is just comparing the millisecond value of the thread, it should be comparing the the total time each thread took to execute relative to the start time. This is the proposed change:

var func = function() {
    var start = new Date();
    db.runCommand({$eval: "sleep(10000);", nolock: true});
    return new Date();
};
 
assert.lt(
    a.returnData() - start, 15000, "A took more than 15s");



 Comments   
Comment by Githook User [ 04/Jan/17 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-26143 Fix time check for jstests/parallel/checkMultiThread.js
Branch: master
https://github.com/mongodb/mongo/commit/e3a26f82b1b7a51b3eb6083c5ba86ee5acd30690

Generated at Thu Feb 08 04:11:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.