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

Observing System.InvalidOperationException : TestThreadContext with id was already released #387

Open
pras4917 opened this issue Jan 6, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@pras4917
Copy link

pras4917 commented Jan 6, 2025

Reqnroll Version

2.2.1

Which test runner are you using?

xUnit

Test Runner Version Number

2.9.0

.NET Implementation

.NET 8.0

Test Execution Method

Visual Studio Test Explorer

Content of reqnroll.json configuration file

No response

Issue Description

We have recently migrated from Specflow and facing issue with test execution.

The test fails with following error (StackTrace)

Stack Trace: 
TestRunnerManager.ReleaseTestThreadContext(ITestThreadContext testThreadContext)
TestRunnerManager.ReleaseTestRunner(ITestRunner testRunner)
StatusCheckFeature.TestTearDownAsync() // our feature file
IAsyncLifetime.DisposeAsync()

Following versions are working:

  • 2.0.2
  • 2.0.3

Following versions having the issue

  • 2.2.1
  • 2.2.0
  • 2.1.1
  • 2.1.0

Could anyone assist on the issue?

Steps to Reproduce

Run the test from test explorer.

Link to Repro Project

No response

@pras4917 pras4917 added the bug Something isn't working label Jan 6, 2025
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