Merge #648: tests: fix a small race in the rescan_and_recover test

9685920102b6f8340aeec5493b07e55ae9628398 tests: fix a small race in the rescan_and_recover test (Antoine Poinsot)

Pull request description:

ACKs for top commit:
  darosior:
    self-ACK 9685920102b6f8340aeec5493b07e55ae9628398 -- trivial, tested locally by running many instances of the test in parallel

Tree-SHA512: b384eeac6eba7416a9316b271c4ace26d933f9bfb85a6f4cc59133937cafda0baa9086926fad8ba8c262a1edaf3479b1a6db190da339fd8ff78820aa46b90656
This commit is contained in:
Antoine Poinsot 2023-08-31 11:19:14 +02:00
commit d5d2a7626f
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -340,6 +340,7 @@ def test_rescan_and_recovery(lianad, bitcoind):
# Start rescan
lianad.rpc.startrescan(initial_tip["time"])
wait_for(lambda: len(lianad.rpc.listcoins()["coins"]) == 1)
wait_for(lambda: lianad.rpc.getinfo()["rescan_progress"] is None)
# Create a recovery tx that sweeps the first coin.