diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-05-06 15:13:42 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-05-06 15:30:31 +0200 |
commit | 7bcc42b4035b878719d13201286e322989b415c5 (patch) | |
tree | 9e669b92516612f3bee6056ce305259c569a870c /test/functional/feature_reindex.py | |
parent | c6b15ec0ee4679a22abefb0d8d528f026acd8b67 (diff) | |
parent | fa3f9a05660687bf4146e089050e944a1d6cbe3c (diff) |
Merge #18873: test: Fix intermittent sync_blocks failures
fa3f9a05660687bf4146e089050e944a1d6cbe3c test: Fix intermittent sync_blocks failures (MarcoFalke)
Pull request description:
Fixes #18872
Fixes #18737
Fixes #18801
See docstring for motivation and description
ACKs for top commit:
laanwj:
Code review ACK fa3f9a05660687bf4146e089050e944a1d6cbe3c
Tree-SHA512: acd52d386a6849f7ff1cb1a51a439dc3c76e0e3a4dd8d22030df0ebb09b44497c61c56331ff65724b695d82d86b0ebb24608f9e637008e5dacb7676b0c448889
Diffstat (limited to 'test/functional/feature_reindex.py')
-rwxr-xr-x | test/functional/feature_reindex.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/feature_reindex.py b/test/functional/feature_reindex.py index 940b403f9c..31cea8d1b7 100755 --- a/test/functional/feature_reindex.py +++ b/test/functional/feature_reindex.py @@ -10,10 +10,10 @@ """ from test_framework.test_framework import BitcoinTestFramework -from test_framework.util import wait_until +from test_framework.util import assert_equal -class ReindexTest(BitcoinTestFramework): +class ReindexTest(BitcoinTestFramework): def set_test_params(self): self.setup_clean_chain = True self.num_nodes = 1 @@ -24,7 +24,7 @@ class ReindexTest(BitcoinTestFramework): self.stop_nodes() extra_args = [["-reindex-chainstate" if justchainstate else "-reindex"]] self.start_nodes(extra_args) - wait_until(lambda: self.nodes[0].getblockcount() == blockcount) + assert_equal(self.nodes[0].getblockcount(), blockcount) # start_node is blocking on reindex self.log.info("Success") def run_test(self): |