-
Notifications
You must be signed in to change notification settings - Fork 243
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
TraceListenerManager
is not thread safe
#2616
Labels
Comments
MarcoRossignoli
changed the title
Mar 20, 2024
TraceListnerManager
is not thread safeTraceListenerManager
is not thread safe
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TraceListenerManager
can be created in parallel and in the constructor it's setting the static consoleTextWriter
without any lock. So when for instance one test completes and restores the originalTextWriter
another concurrentConsole.WriteLine
will pickup wrong writer invalidating the "capture" semantic.testfx/src/Adapter/MSTestAdapter.PlatformServices/Services/TraceListenerManager.cs
Lines 42 to 43 in 2614300
The text was updated successfully, but these errors were encountered: