Skip to content

tests: fix flaky bwatch 1-block reorg test#9258

Merged
sangbida merged 1 commit into
ElementsProject:masterfrom
sangbida:fix/bwatch-reorg-flaky-test
Jun 25, 2026
Merged

tests: fix flaky bwatch 1-block reorg test#9258
sangbida merged 1 commit into
ElementsProject:masterfrom
sangbida:fix/bwatch-reorg-flaky-test

Conversation

@sangbida

@sangbida sangbida commented Jun 25, 2026

Copy link
Copy Markdown
Collaborator

Fixes #9253

The test mined a block and then reorged it, but it did not wait until bwatch had actually seen that block first.

Sometimes bwatch was still one block behind. In that case, the replacement block looked like a normal new block, not a reorg, so the test waited forever for "Reorg detected".

Wait until bwatch has stored the block before reorging it.

Changelog-None

The test mined a block and then reorged it, but it did not wait until bwatch had actually seen that block first.

Sometimes bwatch was still one block behind. In that case, the replacement
block looked like a normal new block, not a reorg, so the test waited forever for "Reorg detected".

Wait until bwatch has stored the block before reorging it.
@sangbida sangbida force-pushed the fix/bwatch-reorg-flaky-test branch from 711b49d to fd41939 Compare June 25, 2026 05:04

@Lagrang3 Lagrang3 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ack.
It Looks robust now.

@sangbida sangbida merged commit d573b58 into ElementsProject:master Jun 25, 2026
43 of 45 checks passed
@madelinevibes madelinevibes added this to the v26.09 milestone Jun 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI Flake test_bwatch_reorg_1_block

3 participants