Skip to content

Commit

Permalink
Fix random test failures
Browse files Browse the repository at this point in the history
Signed-off-by: Anthony Fieroni <[email protected]>
  • Loading branch information
bvbfan committed Apr 27, 2022
1 parent 6ed4ac9 commit 85ec65f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/functional/rpc_invalidateblock.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def run_test(self):
# Reconsider only the previous tip
self.nodes[1].reconsiderblock(blocks[-4])
# NOTE reconsiderblock does not block allowing further invalidation
self.nodes[1].waitforblock(blocks[-4])
self.nodes[1].waitforblock(blocks[-1])

# Should be back at the tip by now
assert_equal(self.nodes[1].getbestblockhash(), blocks[-1])
Expand Down
2 changes: 1 addition & 1 deletion test/functional/rpc_rawtransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ def run_test(self):
assert_equal(gottx['in_active_chain'], False)
self.nodes[0].reconsiderblock(block1)
# NOTE reconsiderblock does not block allowing further invalidation
self.nodes[0].waitforblock(block1)
self.nodes[0].waitforblock(block2)

assert_equal(self.nodes[0].getbestblockhash(), block2)

Expand Down

0 comments on commit 85ec65f

Please sign in to comment.