diff options
author | MarcoFalke <falke.marco@gmail.com> | 2018-05-22 17:07:19 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2018-07-12 10:03:02 -0400 |
commit | cbdabef35e25d84206006b5dddbf6f8376157d5e (patch) | |
tree | cb4304645a4796a12f59f12e07e51e885ac6e3d0 /test | |
parent | 79c4fff9edec13ca4685abde953a320840544869 (diff) |
qa: Fix wallet_listreceivedby race
Github-Pull: #13304
Rebased-From: fa865efa4a21ae08be8b4c390b7661182e0b415b
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/wallet_listreceivedby.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/test/functional/wallet_listreceivedby.py b/test/functional/wallet_listreceivedby.py index 1f2b3c8aa7..dd17ac122a 100755 --- a/test/functional/wallet_listreceivedby.py +++ b/test/functional/wallet_listreceivedby.py @@ -6,10 +6,13 @@ from decimal import Decimal from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import (assert_array_result, - assert_equal, - assert_raises_rpc_error, - ) +from test_framework.util import ( + assert_array_result, + assert_equal, + assert_raises_rpc_error, + sync_blocks, +) + class ReceivedByTest(BitcoinTestFramework): def set_test_params(self): @@ -18,6 +21,7 @@ class ReceivedByTest(BitcoinTestFramework): def run_test(self): # Generate block to get out of IBD self.nodes[0].generate(1) + sync_blocks(self.nodes) self.log.info("listreceivedbyaddress Test") |