Commit d573b58
committed
tests: fix flaky bwatch 1-block reorg test
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.1 parent c9b25bc commit d573b58
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5463 | 5463 | | |
5464 | 5464 | | |
5465 | 5465 | | |
| 5466 | + | |
5466 | 5467 | | |
5467 | 5468 | | |
5468 | | - | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
5469 | 5473 | | |
5470 | 5474 | | |
5471 | 5475 | | |
| |||
0 commit comments