qa: unflake the getinfo RPC functional test

This commit is contained in:
Antoine Poinsot 2022-11-14 09:48:09 +01:00
parent 96b634b69c
commit 55cf21fa2a
No known key found for this signature in database
GPG Key ID: E13FC145CD3F4304

View File

@ -13,7 +13,8 @@ def test_getinfo(minisafed):
res = minisafed.rpc.getinfo()
assert res["version"] == "0.1"
assert res["network"] == "regtest"
wait_for(lambda: res["blockheight"] == 101)
wait_for(lambda: minisafed.rpc.getinfo()["blockheight"] == 101)
res = minisafed.rpc.getinfo()
assert res["sync"] == 1.0
assert "main" in res["descriptors"]
assert res["rescan_progress"] is None