qa: Test bitcond shutdown

This commit is contained in:
João Barbosa
2018-11-20 17:59:07 +00:00
parent 8d3f46ec39
commit 28479f926f
4 changed files with 35 additions and 6 deletions

View File

@@ -228,13 +228,13 @@ class TestNode():
wallet_path = "wallet/{}".format(urllib.parse.quote(wallet_name))
return self.rpc / wallet_path
def stop_node(self, expected_stderr=''):
def stop_node(self, expected_stderr='', wait=0):
"""Stop the node."""
if not self.running:
return
self.log.debug("Stopping node")
try:
self.stop()
self.stop(wait=wait)
except http.client.CannotSendRequest:
self.log.exception("Unable to stop node.")