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

Using Reqnroll.Autofac: System.InvalidOperationException: Collection was modified; enumeration operation may not execute #389

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

Comments

@e317855
Copy link

e317855 commented Jan 8, 2025

Reqnroll Version

2.2.1

Which test runner are you using?

xUnit

Test Runner Version Number

xunit.runner.visualstudio 2.4.5

.NET Implementation

.NET Framework 4.6.2 or later

Test Execution Method

Visual Studio Test Explorer

Content of reqnroll.json configuration file

No response

Issue Description

I am getting the following error at the end of each scenario:

Message: 
System.AggregateException : One or more errors occurred.
---- Case Number: F20250036179, Unexpected activities count
Expected: True
Actual: False
---- System.InvalidOperationException : Collection was modified; enumeration operation may not execute.

image

These are the Reqnroll nutget packages installed:

image

My Autofac configuration:

image

Am I doing something wrong?

Workaround:
Using the source code from git (version 2.2.2-local) instead of the Reqnroll NuGet packages resolves the issue.

Steps to Reproduce

See the above Issue Description

Link to Repro Project

No response

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