Repository navigation
Address flaky hosting event counters tests - #57269
Conversation
|
I noticed when I added logging that I fixed the issue by also passing the unique event source name to the listener and filtering event data. |
0113703 to
bd62721
Compare
3871bc4 to
41be204
Compare
That sounds like you hit dotnet/runtime#31927. Its expected only in the sense that it is a known bug that has been around a long time. I'm encouraging that we fix it. |
|
|
||
| public override void Dispose() | ||
| { | ||
| base.Dispose(); |
There was a problem hiding this comment.
Naively, I would have expected the base call to go at the end, though it doesn't appear to matter in this case.
There was a problem hiding this comment.
Usually, I put base call at the beginning unless there is a reason not to.
There was a problem hiding this comment.
While I generally agree, I think Dispose is a mirror of the constructor and, for similar reasons, it makes sense to tear down the derived class before tearing down the base class (which it may depend upon).
Co-authored-by: Andrew Casey <amcasey@users.noreply.github.com>
Ok. These tests have been flawed forever 😬 |
|
/azp run |
|
Azure Pipelines successfully started running 3 pipeline(s). |
Addresses #57259
Counter tests are flaky. Possible cause is a timing change for reporting counter values in dotnet/runtime.
PR changes: