You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xUnit tests are not executed successfully with enabled xUnit property maxParallelThreads.
To reproduce.
Open src/DotNet.Testcontainers.Tests/xunit.runner.json.
Change the property maxParallelThreads to 1.
Execute PostgreSqlTestcontainerTest test.
Expected behavior.
xUnit tests are not blocked and executed successfully.
Screenshots.
-
Desktop (please complete the following information).
-
Additional context.
xUnit has it's own synchronization contexts. As soon as we enable the xUnit property maxParallelThreads, our tests are deadlocked (1; 2). If we remove following two lines 1 and 2 our tests run perfectly fine. Replace those two lines with code that does not block the context at all.
The text was updated successfully, but these errors were encountered:
Describe the bug.
xUnit tests are not executed successfully with enabled xUnit property
maxParallelThreads
.To reproduce.
src/DotNet.Testcontainers.Tests/xunit.runner.json
.maxParallelThreads
to1
.PostgreSqlTestcontainerTest
test.Expected behavior.
xUnit tests are not blocked and executed successfully.
Screenshots.
-
Desktop (please complete the following information).
-
Additional context.
xUnit has it's own synchronization contexts. As soon as we enable the xUnit property
maxParallelThreads
, our tests are deadlocked (1; 2). If we remove following two lines 1 and 2 our tests run perfectly fine. Replace those two lines with code that does not block the context at all.The text was updated successfully, but these errors were encountered: