Skip to content

Commit

Permalink
func test: wait for block heights to match
Browse files Browse the repository at this point in the history
This is copied from darosior's changes in
#1222 (comment).
  • Loading branch information
jp1ac4 committed Sep 4, 2024
1 parent 2d085ee commit 6901f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,9 @@ def test_create_recovery(lianad, bitcoind):
bitcoind.generate_block(9, wait_for_mempool=txid)

# Now we can create a recovery tx that sweeps the first 3 coins.
wait_for(
lambda: lianad.rpc.getinfo()["block_height"] == bitcoind.rpc.getblockcount()
)
res = lianad.rpc.createrecovery(bitcoind.rpc.getnewaddress(), 18)
reco_psbt = PSBT.from_base64(res["psbt"])

Expand Down

0 comments on commit 6901f8e

Please sign in to comment.