qa: unflake test_rescan_edge_cases

We weren't waiting for lianad to be back to the same height as bitcoind.
Necessarily it could happen that sorted_coins() would return an empty
list.

Fixes #142 (did 50 successful runs of the test)
This commit is contained in:
Antoine Poinsot 2022-12-13 15:48:37 +01:00
parent f6db9c6677
commit b74a6ffc16
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -222,6 +222,7 @@ def test_rescan_edge_cases(lianad, bitcoind):
lianad.stop()
lianad.start()
wait_for(lambda: lianad.rpc.getinfo()["rescan_progress"] is None)
wait_synced()
assert coins_before == sorted_coins()
# Lose our state again