Skip to content

Commit fa865ef

Browse files
author
MarcoFalke
committed
qa: Fix wallet_listreceivedby race
1 parent d792e47 commit fa865ef

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/functional/wallet_listreceivedby.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@
66
from decimal import Decimal
77

88
from test_framework.test_framework import BitcoinTestFramework
9-
from test_framework.util import (assert_array_result,
10-
assert_equal,
11-
assert_raises_rpc_error,
12-
)
9+
from test_framework.util import (
10+
assert_array_result,
11+
assert_equal,
12+
assert_raises_rpc_error,
13+
sync_blocks,
14+
)
15+
1316

1417
class ReceivedByTest(BitcoinTestFramework):
1518
def set_test_params(self):
@@ -18,6 +21,7 @@ def set_test_params(self):
1821
def run_test(self):
1922
# Generate block to get out of IBD
2023
self.nodes[0].generate(1)
24+
sync_blocks(self.nodes)
2125

2226
self.log.info("listreceivedbyaddress Test")
2327

0 commit comments

Comments
 (0)