Skip to content

test: fix hanging waitgroups#699

Merged
vaind merged 1 commit intomasterfrom
test/hanging-waitgroups
Aug 14, 2023
Merged

test: fix hanging waitgroups#699
vaind merged 1 commit intomasterfrom
test/hanging-waitgroups

Conversation

@vaind
Copy link
Copy Markdown
Contributor

@vaind vaind commented Aug 14, 2023

Makes sure wg.Done() is called even if the test code in transport test fails.

With the original code, a test failure in testSendSignalEvent() would result in a timeout because wg.Done() was never called and thus the subsequent wg.Fail() would get blocked indefinitely.

In the new version, the actual test failure will be reported instead.

@vaind vaind requested a review from tonyo August 14, 2023 12:03
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 14, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (34ce12e) 80.78% compared to head (7605776) 80.78%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #699   +/-   ##
=======================================
  Coverage   80.78%   80.78%           
=======================================
  Files          44       44           
  Lines        4466     4466           
=======================================
  Hits         3608     3608           
  Misses        728      728           
  Partials      130      130           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vaind vaind merged commit 9f38c57 into master Aug 14, 2023
@vaind vaind deleted the test/hanging-waitgroups branch August 14, 2023 12:35
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.

2 participants