Skip to content

Commit

Permalink
Fix running tests hanging indefinitely
Browse files Browse the repository at this point in the history
By setting the `IsTestProject` property to false in Testcontainers.Commons.csproj

Cause: referencing the `xunit` package enables `IsTestProject=true` which trigger a bug in vstest where [netstandard libraries hangs indefinitely][1]. This bug was addressed on May 30, 2023: [Fix execution gets stucks on single netstandard source][2]

[1]: microsoft/vstest#4392
[2]: microsoft/vstest#4497
  • Loading branch information
0xced committed Sep 18, 2023
1 parent b816f7c commit 57b128a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/Testcontainers.Commons/Testcontainers.Commons.csproj
Expand Up @@ -3,6 +3,7 @@
<TargetFrameworks>netstandard2.0;netstandard2.1</TargetFrameworks>
<IsPackable>false</IsPackable>
<IsPublishable>false</IsPublishable>
<IsTestProject>false</IsTestProject>
<SignAssembly>true</SignAssembly>
<LangVersion>latest</LangVersion>
</PropertyGroup>
Expand Down

0 comments on commit 57b128a

Please sign in to comment.