Skip to content

Conversation

@algorandskiy
Copy link
Contributor

Summary

Based on this test failure there one test started executing before the previous finished: mainLoop goroutine stayed alive after calling Shutdown.
This means the Shutdown, mainLoop and demuxLoop termination logic based on done channel is racy.

Fixed by replacing the done channel with explicit wait on a wait group.

Test Plan

Existing tests

@codecov
Copy link

codecov bot commented May 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.96%. Comparing base (e25465b) to head (4ffdb73).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6349   +/-   ##
=======================================
  Coverage   51.96%   51.96%           
=======================================
  Files         653      653           
  Lines       87460    87461    +1     
=======================================
+ Hits        45445    45452    +7     
+ Misses      39141    39138    -3     
+ Partials     2874     2871    -3     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@algorandskiy algorandskiy merged commit 2dbbf58 into algorand:master May 29, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants