Skip to content

test: waitFor was badly broken#6359

Merged
jannotti merged 2 commits intoalgorand:masterfrom
jannotti:heartbeat-race-fix
Jun 9, 2025
Merged

test: waitFor was badly broken#6359
jannotti merged 2 commits intoalgorand:masterfrom
jannotti:heartbeat-race-fix

Conversation

@jannotti
Copy link
Copy Markdown
Contributor

@jannotti jannotti commented Jun 5, 2025

Besides being improperly synchronized, its design was flawed. It waited for a channel to appear in l.waiters, but that channel didn't last long, and could be missed once synchronization was added.

Instead conservatively wait.

Summary

Test Plan

Besides being improperly synchronized, its design was flawed.  It
waited for a channel to appear in `l.waiters`, but that channel didn't
last long, and could be missed once synchronization was added.

Instead conservatively wait.
@jannotti jannotti self-assigned this Jun 5, 2025
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 50.48%. Comparing base (ab67434) to head (1f9ae48).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6359      +/-   ##
==========================================
- Coverage   50.64%   50.48%   -0.17%     
==========================================
  Files         653      653              
  Lines      110378   110378              
==========================================
- Hits        55901    55719     -182     
- Misses      51607    51796     +189     
+ Partials     2870     2863       -7     

☔ 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.

@jannotti jannotti requested review from algorandskiy and gmalouf June 5, 2025 19:29
@jannotti jannotti merged commit 2a21fca into algorand:master Jun 9, 2025
47 of 48 checks passed
@jannotti jannotti deleted the heartbeat-race-fix branch July 15, 2025 16:23
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.

3 participants