test: Fix race condition in IPC interface block propagation test
This commit is contained in:
1 file changed
+3
-1
@@ -256,9 +256,11 @@ class IPCInterfaceTest(BitcoinTestFramework):
|
|||||||
assert_equal(res.result, True)
|
assert_equal(res.result, True)
|
||||||
|
|
||||||
self.log.debug("Block should propagate")
|
self.log.debug("Block should propagate")
|
||||||
assert_equal(self.nodes[1].getchaintips()[0]["height"], current_block_height + 1)
|
# Check that the IPC node actually updates its own chain
|
||||||
|
assert_equal(self.nodes[0].getchaintips()[0]["height"], current_block_height + 1)
|
||||||
# Stalls if a regression causes submitBlock() to accept an invalid block:
|
# Stalls if a regression causes submitBlock() to accept an invalid block:
|
||||||
self.sync_all()
|
self.sync_all()
|
||||||
|
# Check that the other node accepts the block
|
||||||
assert_equal(self.nodes[0].getchaintips()[0], self.nodes[1].getchaintips()[0])
|
assert_equal(self.nodes[0].getchaintips()[0], self.nodes[1].getchaintips()[0])
|
||||||
|
|
||||||
miniwallet.rescan_utxos()
|
miniwallet.rescan_utxos()
|
||||||
|
|||||||
Reference in new issue
Block a user