[SERVER-74239] Relax test constraints for sleep_for on Windows systems Created: 21/Feb/23  Updated: 29/Oct/23  Resolved: 08/Mar/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Alex Li Assignee: Alex Li
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.3
Sprint: Service Arch 2023-03-06, Service Arch 2023-03-20
Participants:
Linked BF Score: 8

 Description   

The docs for sleep_for state that the thread sleeps for at least the provided sleep duration, meaning the precision expected in tick_source_test is too strict. Loosen the assertion, and also make a comment on stdx::sleep_for restating the above.



 Comments   
Comment by Liubov Molchanova [ 18/Apr/23 ]

Requesting a backport for v6.3 as the issue reproduced in BFG-1898174

Comment by Githook User [ 07/Mar/23 ]

Author:

{'name': 'Alex Li', 'email': 'alex.li@mongodb.com', 'username': 'lia394126'}

Message: SERVER-74239 Relax test constraints for sleep_for on Windows systems
Branch: master
https://github.com/mongodb/mongo/commit/04ed12f640121de4c97589e6a991d05471efbf59

Generated at Thu Feb 08 06:26:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.