diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-08-16 08:52:24 -0700 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-10-03 18:53:35 +0200 |
commit | eeb24a3a0157c41a0aae1d5561cf490abe378585 (patch) | |
tree | a23aa52ed3ae8d1c1d68d0adf196706ba30db298 /test/functional/blockchain.py | |
parent | f3f78917769b9bc65c133a160dba7df18a33b27d (diff) | |
download | bitcoin-eeb24a3a0157c41a0aae1d5561cf490abe378585.tar.xz |
[qa] TestNode: Add wait_until_stopped helper method
Github-Pull: #11067
Rebased-From: faa8d9581affde35a8242c63fca8a52004d4f943
Diffstat (limited to 'test/functional/blockchain.py')
-rwxr-xr-x | test/functional/blockchain.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/blockchain.py b/test/functional/blockchain.py index 5d04de9940..50be9262e4 100755 --- a/test/functional/blockchain.py +++ b/test/functional/blockchain.py @@ -21,7 +21,7 @@ from decimal import Decimal import http.client import subprocess -from test_framework.test_framework import (BitcoinTestFramework, BITCOIND_PROC_WAIT_TIMEOUT) +from test_framework.test_framework import BitcoinTestFramework from test_framework.util import ( assert_equal, assert_raises, @@ -141,7 +141,7 @@ class BlockchainTest(BitcoinTestFramework): except (ConnectionError, http.client.BadStatusLine): pass # The node already shut down before response self.log.debug('Node should stop at this height...') - self.nodes[0].process.wait(timeout=BITCOIND_PROC_WAIT_TIMEOUT) + self.nodes[0].wait_until_stopped() self.start_node(0) assert_equal(self.nodes[0].getblockcount(), 207) |