Skip to content

Commit

Permalink
[test] fix p2p_orphan_handling.py empty orphanage check
Browse files Browse the repository at this point in the history
It's possible getorphantxs isn't empty immediately. Prevent intermittent errors.
  • Loading branch information
glozow committed Jan 16, 2025
1 parent f9032a4 commit 2e75ebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/functional/p2p_orphan_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def wrapper(self):
self.nodes[0].disconnect_p2ps()
self.nodes[0].bumpmocktime(LONG_TIME_SKIP)
# Check that mempool and orphanage have been cleared
assert_equal(0, len(self.nodes[0].getorphantxs()))
self.wait_until(lambda: len(self.nodes[0].getorphantxs()) == 0)
assert_equal(0, len(self.nodes[0].getrawmempool()))
self.wallet.rescan_utxos(include_mempool=True)
return wrapper
Expand Down

0 comments on commit 2e75ebb

Please sign in to comment.