Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GODRIVER-2464 Add delay in RTT monitor test so Windows can measure a non-zero latency. #1022

Merged

Conversation

matthewdale
Copy link
Collaborator

@matthewdale matthewdale commented Jul 13, 2022

The new TestRTTMonitor/stuck_operations_time_out test added in #994 fails frequently on Windows tasks because Go running on some versions of Windows can't measure very short periods of time (<1ms) reliably (see test failure example here and related Go issue here).

Add a 10ms delay in the TestRTTMonitor/stuck_operations_time_out test "hello" responder so that Windows can successfully measure a non-zero round-trip latency.

@matthewdale matthewdale marked this pull request as ready for review July 14, 2022 00:05
Copy link
Collaborator

@prestonvasquez prestonvasquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you

Copy link
Contributor

@benjirewis benjirewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. The remaining Windows failures seem to be due to GODRIVER-2483 (flaky failures of TestClient/RTT90_used_to_prevent_sending_requests on Windows probably caused by a very similar issue).

@matthewdale matthewdale merged commit f9e6b2f into mongodb:master Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants