Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Avoid timing issue in IOControl_SIOCATMARK tests - #27838

Merged
rmkerr merged 2 commits into
dotnet:masterfrom
rmkerr:Socket_Siocatmark_TestFix
Mar 8, 2018
Merged

rmkerr merged 2 commits into
dotnet:masterfrom
rmkerr:Socket_Siocatmark_TestFix

Conversation

@rmkerr

@rmkerr rmkerr commented Mar 8, 2018 •

Copy link
Copy Markdown
Contributor

This test is sending out of band data, and then checking that it has been received immediately. Depending on timing the check may actually be hit before the data is received, so we need to give it some time.

When I updated these tests in PR #27583 I didn't consider that sent data wouldn't be received instantaneously. That was taken into consideration in the original tests and mitigated with SpinWait.SpinUntil, but after my update that check was in the wrong spot. This fix moves them to the right place.

Fixes: #27835, #27717

@rmkerr rmkerr added test bug Problem in test source code (most likely) area-System.Net.Sockets labels Mar 8, 2018
@rmkerr rmkerr self-assigned this Mar 8, 2018
@rmkerr
rmkerr requested review from davidsh and stephentoub March 8, 2018 01:11
@karelz karelz removed the test bug Problem in test source code (most likely) label Mar 8, 2018
@rmkerr
rmkerr merged commit b437972 into dotnet:master Mar 8, 2018
@karelz karelz added this to the 2.1.0 milestone Mar 10, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
This test is sending out of band data, and then checking that it has been received immediately. Depending on timing the check may actually be hit before the data is received, so we need to give it some time.

Fixes: dotnet/corefx#27835, dotnet/corefx#27717

Commit migrated from dotnet/corefx@b437972
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Failure in System.Net.Sockets tests

4 participants