Skip to content

Conversation

@slang25
Copy link
Member

@slang25 slang25 commented Jun 23, 2024

  • Use TaskCompletionSource to avoid task scheduler and waits where appropriate, these are unreliable on slow hardware (AppVeyor).
  • Standardise some of the wait durations, and have them be more lenient. The eventual solution to this would be TimeProvider, but that's a more substantial change.
  • Format HashCodes printing to a minimum of 6 digits (we'd occasionally get 4 digit hashcodes which was breaking the tests)
  • Improve HashCode scrubbing to handle all scenarios

I've tried to be careful about not changing the tests to act on delegates that are intended to not immediately complete, I think I've got the balance right here.

@slang25
Copy link
Member Author

slang25 commented Jun 23, 2024

@slang25
Copy link
Member Author

slang25 commented Jun 23, 2024

Ah, there are more tests of this style, will go after those too

@slang25 slang25 changed the title Simplify some of the flaky tests Improve some of the flaky tests Jun 23, 2024
@slang25 slang25 marked this pull request as ready for review June 23, 2024 15:16
@slang25 slang25 requested a review from SimonCropp June 23, 2024 15:40
@slang25
Copy link
Member Author

slang25 commented Jun 24, 2024

@SimonCropp I'll merge this unless you have any objection

@SimonCropp
Copy link
Contributor

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants