-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[chore] Remove redundant wait group from a test #10269
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #10269 +/- ##
==========================================
- Coverage 92.50% 92.49% -0.02%
==========================================
Files 387 387
Lines 18259 18259
==========================================
- Hits 16890 16888 -2
- Misses 1024 1025 +1
- Partials 345 346 +1 ☔ View full report in Codecov by Sentry. |
b73a349
to
7bde195
Compare
This may fail goleak, because some of the started go routines may not finish until the end of the test. |
7bde195
to
65d9f82
Compare
Makes sense. I simplified the test to keep only two goroutines that must finish once the batcher is shut down. This also makes the test deterministic |
65d9f82
to
58f2938
Compare
https://github.com/open-telemetry/opentelemetry-collector/pull/10258/files#r1621017272 made me wonder if the wait group is really necessary. We have another synchronization that waits for at least two requests to enter the merge function, which should be enough. So, we don't necessarily need this wait group. Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
https://github.com/open-telemetry/opentelemetry-collector/pull/10258/files#r1621017272 made me wonder if the wait group is really necessary. We have another synchronization that waits for at least two requests to enter the merge function, which should be enough. So, we don't necessarily need this wait group.