diff options
author | John Newbery <john@johnnewbery.com> | 2017-06-02 13:14:14 -0400 |
---|---|---|
committer | John Newbery <john@johnnewbery.com> | 2017-06-29 11:55:19 +0100 |
commit | cad967a892d836b3afbd1ab81c73731e968368c6 (patch) | |
tree | 2d14c93b35f492798fd89ac6481218c9d489a30b /test/functional/dbcrash.py | |
parent | f1fe5368f191018a72276a93a9e74cd95f896697 (diff) |
[tests] Move stop_node and start_node methods to BitcoinTestFramework
This commit moves functions start_node, start_nodes, stop_node and
stop_nodes functions into the BitcoinTestFramework class. It also moves
the bitcoind_processes dict and coverage variables into BitcoinTestFramework.
Diffstat (limited to 'test/functional/dbcrash.py')
-rwxr-xr-x | test/functional/dbcrash.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/dbcrash.py b/test/functional/dbcrash.py index 4a10743f04..6f877f8362 100755 --- a/test/functional/dbcrash.py +++ b/test/functional/dbcrash.py @@ -88,7 +88,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework): # An exception here should mean the node is about to crash. # If bitcoind exits, then try again. wait_for_node_exit() # should raise an exception if bitcoind doesn't exit. - wait_for_node_exit(node_index, timeout=10) + self.wait_for_node_exit(node_index, timeout=10) self.crashed_on_restart += 1 time.sleep(1) @@ -140,7 +140,7 @@ class ChainstateWriteCrashTest(BitcoinTestFramework): if not self.submit_block_catch_error(i, block): # TODO: more carefully check that the crash is due to -dbcrashratio # (change the exit code perhaps, and check that here?) - wait_for_node_exit(i, timeout=30) + self.wait_for_node_exit(i, timeout=30) self.log.debug("Restarting node %d after block hash %s", i, block_hash) nodei_utxo_hash = self.restart_node(i, block_hash) assert nodei_utxo_hash is not None |