From 55cf21fa2aa7a66d998061684630a32cfb972a35 Mon Sep 17 00:00:00 2001 From: Antoine Poinsot Date: Mon, 14 Nov 2022 09:48:09 +0100 Subject: [PATCH] qa: unflake the getinfo RPC functional test --- tests/test_rpc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_rpc.py b/tests/test_rpc.py index 2bc0aa73..25106ff6 100644 --- a/tests/test_rpc.py +++ b/tests/test_rpc.py @@ -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