Commit 0cefa84
fix: add WaitForNextBlock to prevent flaky testnode tests (#7046)
## Summary
- Add missing `cctx.WaitForNextBlock()` calls after
`testnode.NewNetwork` in three tests that were susceptible to flaking
when the node hadn't produced its first block
- Affected tests: `TestClaimRewardsAfterFullUndelegation`,
`StandardSDKIntegrationTestSuite.SetupSuite`,
`TestTimeInPrepareProposalContext`
- Matches the pattern already used by non-flaky tests like
`integration_test.go` and `send_to_self_test.go`
Closes #7045
## Test plan
- [x] `TestClaimRewardsAfterFullUndelegation` passes 3/3 runs locally
with `-count=3`
- [ ] `test / test-short` CI job passes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- devin-review-badge-begin -->
---
<a href="https://app.devin.ai/review/celestiaorg/celestia-app/pull/7046"
target="_blank">
<picture>
<source media="(prefers-color-scheme: dark)"
srcset="https://static.devin.ai/assets/gh-open-in-devin-review-dark.svg?v=1">
<img
src="https://static.devin.ai/assets/gh-open-in-devin-review-light.svg?v=1"
alt="Open with Devin">
</picture>
</a>
<!-- devin-review-badge-end -->
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent b62ece2 commit 0cefa84
3 files changed
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
0 commit comments