Skip to content

Conversation

@snormore
Copy link
Contributor

@snormore snormore commented Feb 9, 2026

Summary of Changes

  • Move beforeFunderBalance capture to before draining device accounts, fixing a race condition where the funder service (3s interval) could detect drained accounts and re-fund them before the test captured the baseline balance, causing the 2*topUpSOL decrease assertion to never be satisfied

Testing Verification

  • Identified from CI failure in shard 2 job where TestE2E_Funder failed with "Condition never satisfied" at line 153 after 200s
  • Race window eliminated by capturing baseline when both devices are above minBalance and no funder top-ups are pending

Move beforeFunderBalance capture to before draining device accounts.
The funder service (3s interval) could detect drained accounts and
re-fund them before the test captured the baseline, causing the
subsequent 2*topUpSOL decrease assertion to never be satisfied.
@snormore snormore marked this pull request as ready for review February 9, 2026 22:55
@snormore snormore enabled auto-merge (squash) February 9, 2026 22:58
@snormore snormore merged commit 889efaa into main Feb 9, 2026
32 of 34 checks passed
@snormore snormore deleted the snor/fix-flaky-funder-test branch February 9, 2026 23:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants