Wait for address association before balance assertions#3584
Conversation
The Autobahn associate-balance test was flaky because `associateKeyStrict` returned after submitting `seid tx evm associate-address` and waiting a fixed number of blocks. In the failing run, the associate transaction had returned, but the EVM/Sei address association was not visible to the balance query yet, so the test read the pre-association EVM balance (`200`) instead of the expected converted Sei balance. Fix this by waiting on the causal post-state: query `seid q evm evm-addr` until it reports `associated: true` for the Sei address. This makes the test proceed only once the association side effect is observable, instead of relying on block timing. Flaked [here](https://github.com/sei-protocol/sei-chain/actions/runs/27301809780/job/80650521620).
PR SummaryLow Risk Overview A new This targets Autobahn flakiness where associate-balance tests asserted balances before the association was visible to queries. Reviewed by Cursor Bugbot for commit 5f0ef68. Bugbot is set up for automated code reviews on this repo. Configure here. |
|
The latest Buf updates on your PR. Results from workflow Buf / buf (pull_request).
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3584 +/- ##
==========================================
- Coverage 59.22% 58.35% -0.87%
==========================================
Files 2214 2140 -74
Lines 183389 174842 -8547
==========================================
- Hits 108604 102031 -6573
+ Misses 64994 63720 -1274
+ Partials 9791 9091 -700
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
The Autobahn associate-balance test was flaky because
associateKeyStrictreturned after submittingseid tx evm associate-addressand waiting a fixed number of blocks. In the failing run, the associate transaction had returned, but the EVM/Sei address association was not visible to the balance query yet, so the test read the pre-association EVM balance (200) instead of the expected converted Sei balance.Fix this by waiting on the causal post-state: query
seid q evm evm-addruntil it reportsassociated: truefor the Sei address. This makes the test proceed only once the association side effect is observable, instead of relying on block timing.Flaked here.