diff options
| author | MarcoFalke <[email protected]> | 2020-05-04 20:06:38 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-05 14:37:46 -0400 |
| commit | fa3f9a05660687bf4146e089050e944a1d6cbe3c (patch) | |
| tree | 36f1337187c072c11244547806832ab73ba1721e /test/functional/feature_loadblock.py | |
| parent | Merge #18088: build: ensure we aren't using GNU extensions (diff) | |
| download | discoin-fa3f9a05660687bf4146e089050e944a1d6cbe3c.tar.xz discoin-fa3f9a05660687bf4146e089050e944a1d6cbe3c.zip | |
test: Fix intermittent sync_blocks failures
Diffstat (limited to 'test/functional/feature_loadblock.py')
| -rwxr-xr-x | test/functional/feature_loadblock.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/functional/feature_loadblock.py b/test/functional/feature_loadblock.py index 1138b0f0e..82f133168 100755 --- a/test/functional/feature_loadblock.py +++ b/test/functional/feature_loadblock.py @@ -16,10 +16,8 @@ import sys import tempfile import urllib -from test_framework.test_framework import ( - BitcoinTestFramework, -) -from test_framework.util import assert_equal, wait_until +from test_framework.test_framework import BitcoinTestFramework +from test_framework.util import assert_equal class LoadblockTest(BitcoinTestFramework): @@ -75,7 +73,7 @@ class LoadblockTest(BitcoinTestFramework): self.log.info("Restart second, unsynced node with bootstrap file") self.stop_node(1) self.start_node(1, ["-loadblock=" + bootstrap_file]) - wait_until(lambda: self.nodes[1].getblockcount() == 100) + assert_equal(self.nodes[1].getblockcount(), 100) # start_node is blocking on all block files being imported assert_equal(self.nodes[1].getblockchaininfo()['blocks'], 100) assert_equal(self.nodes[0].getbestblockhash(), self.nodes[1].getbestblockhash()) |