Skip to content

Conversation

@MihaZupan
Copy link
Member

Fixes #52464

The simple delay is a race condition that keeps getting hit.

For all such tests in networking we used this approach for waiting on counters. For example HTTP telemetry:

private static async Task WaitForEventCountersAsync(ConcurrentQueue<(EventWrittenEventArgs Event, Guid ActivityId)> events)

@StephenMolloy
Copy link
Member

Ha ha. Crossed streams. I just followed the same approach and submitted a similar PR a short bit ago before seeing this in my inbox. I'm going to close this PR in favor of the other one (#52490) since that uses a polling criteria that is little more specific to this case.

@ghost ghost locked as resolved and limited conversation to collaborators Jun 7, 2021
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.

MonoTests.System.Runtime.Caching.CountersTest.Basic_Counters fail in CI

2 participants