[SERVER-34540] Remove sleeptest from dbtests Created: 18/Apr/18  Updated: 29/Oct/23  Resolved: 23/Apr/18

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.21, 3.4.16, 3.6.6, 3.7.6

Type: Task Priority: Major - P3
Reporter: Jonathan Reams Assignee: Jonathan Reams
Resolution: Fixed Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Backport Requested:
v3.6, v3.4, v3.2
Sprint: Platforms 2018-04-23
Participants:
Linked BF Score: 45

 Description   

The sleeptest in dbtests checks whether calling sleep returns within an arbitrary threshold:

            sleepmicros( 1527123 );
            ASSERT( t.micros() > 1000000 );
            ASSERT( t.micros() < 2000000 );

No platform that I know of actually guarantees this test will pass, so it should be removed.



 Comments   
Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'jbreams', 'name': 'Jonathan Reams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-34540 Remove sleeptest from dbtest

(cherry picked from commit dba852d5d9cd0b3f067fd8d880e7e576db580653)
Branch: v3.2
https://github.com/mongodb/mongo/commit/61cf4b85f6d8687a4632d429cf924aa5ef3ed049

Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'jbreams', 'name': 'Jonathan Reams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-34540 Remove sleeptest from dbtest

(cherry picked from commit dba852d5d9cd0b3f067fd8d880e7e576db580653)
Branch: v3.4
https://github.com/mongodb/mongo/commit/6ca58b3badd0677be4be265e47b23f15a0198043

Comment by Githook User [ 23/May/18 ]

Author:

{'username': 'jbreams', 'name': 'Jonathan Reams', 'email': 'jbreams@mongodb.com'}

Message: SERVER-34540 Remove sleeptest from dbtest

(cherry picked from commit dba852d5d9cd0b3f067fd8d880e7e576db580653)
Branch: v3.6
https://github.com/mongodb/mongo/commit/a03173c14410eeeeb8aa99a710509ce444bf7733

Comment by Githook User [ 23/Apr/18 ]

Author:

{'email': 'jbreams@mongodb.com', 'username': 'jbreams', 'name': 'Jonathan Reams'}

Message: SERVER-34540 Remove sleeptest from dbtest
Branch: master
https://github.com/mongodb/mongo/commit/dba852d5d9cd0b3f067fd8d880e7e576db580653

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