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

test: fix some times happening race condition 'Collection was modified; enumeration operation may not execute. #25

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

skwasjer
Copy link
Owner

@skwasjer skwasjer commented Sep 2, 2023

From job log:

System.InvalidOperationException : Collection was modified; enumeration operation may not execute.
  Stack Trace:
     at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Linq.Enumerable.All[TSource](IEnumerable`1 source, Func`2 predicate)
   at Hangfire.Correlate.HangfireIntegrationTests.WaitUntilJobCompletedAsync(String jobId, Int32 maxWaitInMilliseconds) in /Users/runner/work/Hangfire.Correlate/Hangfire.Correlate/test/Hangfire.Correlate.Tests/HangfireIntegrationTests.cs:line 75
   at Hangfire.Correlate.HangfireIntegrationTests.Given_job_is_queued_outside_correlationContext_should_use_jobId_as_correlationId() in /Users/runner/work/Hangfire.Correlate/Hangfire.Correlate/test/Hangfire.Correlate.Tests/HangfireIntegrationTests.cs:line 189

@skwasjer skwasjer temporarily deployed to internal September 2, 2023 09:35 — with GitHub Actions Inactive
@skwasjer skwasjer enabled auto-merge (squash) September 2, 2023 09:35
@sonarcloud
Copy link

sonarcloud bot commented Sep 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@codecov
Copy link

codecov bot commented Sep 2, 2023

Codecov Report

Merging #25 (14fec9c) into main (a385205) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files

@skwasjer skwasjer merged commit 531770a into main Sep 2, 2023
13 checks passed
@skwasjer skwasjer deleted the chore/fix_test_race_condition branch September 2, 2023 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant