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

Fix: Attempting to set the ConcurrentObjectResolutionTimeout value on the ObjectContainer to TimeSpan.Zero sometimes throws an exception if running multiple tests in parallel. #445

Merged
merged 1 commit into from
Feb 11, 2025

Conversation

gasparnagy
Copy link
Contributor

🤔 What's changed?

Changed the behavior of the non-default 0 timeout case that it also acquires a lock, because that seems to be needed for the thread safety of the container.
The default behavior is not changed.

⚡️ What's your motivation?

Fixes #440

🏷️ What kind of change is this?

  • 🐛 Bug fix (non-breaking change which fixes a defect)

♻️ Anything particular you want feedback on?

n/a

📋 Checklist:

  • I've changed the behaviour of the code
  • Users should know about my change
    • I have added an entry to the "[vNext]" section of the CHANGELOG, linking to this pull request & included my GitHub handle to the release contributors list.

This text was originally taken from the template of the Cucumber project, then edited by hand. You can modify the template here.

…on the `ObjectContainer` to `TimeSpan.Zero` sometimes throws an exception if running multiple tests in parallel. (#440)
@gasparnagy gasparnagy merged commit 8d2d861 into main Feb 11, 2025
5 checks passed
@gasparnagy gasparnagy deleted the fix-parallel-issue-440 branch February 11, 2025 11:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant