Skip to content

fix: NullReferenceException thrown when running tests in parallel#10181

Merged
yufeih merged 1 commit intodotnet:mainfrom
filzrev:fix-nullreferenceexception-on-parallel-tests
Sep 14, 2024
Merged

fix: NullReferenceException thrown when running tests in parallel#10181
yufeih merged 1 commit intodotnet:mainfrom
filzrev:fix-nullreferenceexception-on-parallel-tests

Conversation

@filzrev
Copy link
Collaborator

@filzrev filzrev commented Sep 3, 2024

When running unit tests on Visual Studio TestExplorer.
NullReferenceException is thrown on some cases.

It's seems to be occurred when running following tests in parallel.

  1. UnitTest that use new TestListenerScope();
  2. UnitTest that try to write logs.

How to reproduce problems

  1. Select following tests on Visual Studio TestExplorer.
    1.1. TestLoaderWhenStandalonePreprocessorExists
    1.2. TestBadMdToc
  2. Run unit tests.

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

Labels

bug-fix Makes the pull request to appear in "Bug Fixes" section of the next release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants