Skip to content
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

xUnit tests run in a deadlock in certain circumstances #154

Closed
HofmeisterAn opened this issue Oct 15, 2019 · 0 comments
Closed

xUnit tests run in a deadlock in certain circumstances #154

HofmeisterAn opened this issue Oct 15, 2019 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@HofmeisterAn
Copy link
Collaborator

Describe the bug.

xUnit tests are not executed successfully with enabled xUnit property maxParallelThreads.

To reproduce.

  1. Open src/DotNet.Testcontainers.Tests/xunit.runner.json.
  2. Change the property maxParallelThreads to 1.
  3. 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.

@HofmeisterAn HofmeisterAn added the bug Something isn't working label Oct 15, 2019
@HofmeisterAn HofmeisterAn added this to the 1.0.0 milestone Oct 15, 2019
@HofmeisterAn HofmeisterAn modified the milestones: 1.0.0, 1.1.0 Dec 10, 2019
HofmeisterAn added a commit that referenced this issue Dec 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant