diff options
author | MarcoFalke <falke.marco@gmail.com> | 2017-08-16 08:52:24 -0700 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2017-09-06 09:41:21 -0700 |
commit | faa8d9581affde35a8242c63fca8a52004d4f943 (patch) | |
tree | 20cb6a1f016bffae3846df2484424dd1ce5d0efa /test/functional/blockchain.py | |
parent | 777519bd96f68c18150a0f5942f8f97a91937f5e (diff) | |
download | bitcoin-faa8d9581affde35a8242c63fca8a52004d4f943.tar.xz |
[qa] TestNode: Add wait_until_stopped helper method
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) |