diff --git a/tests/test_rpc.py b/tests/test_rpc.py index 530ef603..b8044aeb 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -88,6 +88,7 @@ def test_create_spend(minisafed, bitcoind): bitcoind.generate_block(1, wait_for_mempool=txid) txid = bitcoind.rpc.sendtoaddress(addr, 0.3556) bitcoind.generate_block(1, wait_for_mempool=txid) + wait_for(lambda: len(minisafed.rpc.listcoins()["coins"]) == 16) # Stop the daemon, should be a no-op minisafed.stop()