-
Notifications
You must be signed in to change notification settings - Fork 1k
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 race condition in GtfsModuleTest #5357
Fix race condition in GtfsModuleTest #5357
Conversation
Arguments.of(List.of(bundle("A"), bundle("B"), bundle("C")), 6) | ||
); | ||
static Stream<Arguments> interliningCases() { | ||
return Stream.of( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Stream.of( | |
return List.of( |
Probably ok without but safer if you switch to a List.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to check if it works with MethodSource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we would be ok with a stream but changed to List just to be sure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MethodSource works with any collection.
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #5357 +/- ##
=============================================
- Coverage 66.43% 66.41% -0.03%
+ Complexity 15210 15206 -4
=============================================
Files 1786 1786
Lines 69239 69239
Branches 7311 7311
=============================================
- Hits 46001 45982 -19
- Misses 20761 20782 +21
+ Partials 2477 2475 -2
☔ View full report in Codecov by Sentry. |
23c9703
to
45b459d
Compare
This test is intermittently failing in our ci pipeline with error:
There is probably some kind of race condition. This PR fixes this by switching to using MethodSource.