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
support request => Please do not submit support request here, see note at the top of this template.
What is the current behavior?
Error sometimes is thrown when running SpecFlow tests in a multithreaded environment:
Error Message:
System.InvalidOperationException : Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
TearDown : System.InvalidOperationException : No test context is active.
Stack Trace:
at System.Collections.Generic.HashSet`1.AddIfNotPresent(T value)
at System.Collections.Generic.HashSet`1.Add(T item)
at Allure.SpecFlowPlugin.SelectiveRun.SelectiveRunTestRunner.OnScenarioInitialize(ScenarioInfo scenarioInfo) in /home/runner/work/allure-csharp/allure-csharp/Allure.SpecFlowPlugin/SelectiveRun/SelectiveRunTestRunner.cs:line [70](https://github.com/allure-framework/allure-csharp/actions/runs/6954697067/job/18922010751?pr=414#step:6:71)
at Allure.Features.TestData.InvalidStepsFeature.ScenarioInitialize(ScenarioInfo scenarioInfo)
at Allure.Features.TestData.InvalidStepsFeature.AllStepsAreInvalid() in /home/runner/work/allure-csharp/allure-csharp/Allure.Features/TestData/Invalid Steps.feature:line 4
--TearDown
at Allure.Net.Commons.AllureContext.get_CurrentTest() in /home/runner/work/allure-csharp/allure-csharp/Allure.Net.Commons/AllureContext.cs:line 146
at Allure.Net.Commons.AllureLifecycle.UpdateTestCase(Action`1 update) in /home/runner/work/allure-csharp/allure-csharp/Allure.Net.Commons/AllureLifecycle.cs:line 413
at Allure.Net.Commons.AllureLifecycle.StopTestCase() in /home/runner/work/allure-csharp/allure-csharp/Allure.Net.Commons/AllureLifecycle.cs:line 445
at Allure.SpecFlowPlugin.AllureBindings.FirstAfterScenario() in /home/runner/work/allure-csharp/allure-csharp/Allure.SpecFlowPlugin/AllureBindings.cs:line 49
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireEvents(HookType hookType)
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.FireScenarioEvents(HookType bindingEvent)
at TechTalk.SpecFlow.Infrastructure.TestExecutionEngine.OnScenarioEnd()
at TechTalk.SpecFlow.TestRunner.OnScenarioEnd()
at Allure.SpecFlowPlugin.SelectiveRun.SelectiveRunTestRunner.OnScenarioEnd() in /home/runner/work/allure-csharp/allure-csharp/Allure.SpecFlowPlugin/SelectiveRun/SelectiveRunTestRunner.cs:line 58
at Allure.Features.TestData.InvalidStepsFeature.TestTearDown()
I'm submitting a ...
What is the current behavior?
Error sometimes is thrown when running SpecFlow tests in a multithreaded environment:
Please tell us about your environment:
Other information
Introduced by #392.
The text was updated successfully, but these errors were encountered: