Skip to content

Commit 2e75ebb

Browse files
committed
[test] fix p2p_orphan_handling.py empty orphanage check
It's possible getorphantxs isn't empty immediately. Prevent intermittent errors.
1 parent f9032a4 commit 2e75ebb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/functional/p2p_orphan_handling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def wrapper(self):
5959
self.nodes[0].disconnect_p2ps()
6060
self.nodes[0].bumpmocktime(LONG_TIME_SKIP)
6161
# Check that mempool and orphanage have been cleared
62-
assert_equal(0, len(self.nodes[0].getorphantxs()))
62+
self.wait_until(lambda: len(self.nodes[0].getorphantxs()) == 0)
6363
assert_equal(0, len(self.nodes[0].getrawmempool()))
6464
self.wallet.rescan_utxos(include_mempool=True)
6565
return wrapper

0 commit comments

Comments
 (0)