aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcoFalke <[email protected]>2016-05-12 12:54:00 +0200
committerMarcoFalke <[email protected]>2016-05-12 13:11:20 +0200
commitfab5233fe6c99d446a2cebc48cf479c3f026c2cc (patch)
tree1d3da740693bea4650d91862fe74274087f374c9
parentMerge #8006: Qt: Add option to disable the system tray icon (diff)
downloaddiscoin-fab5233fe6c99d446a2cebc48cf479c3f026c2cc.tar.xz
discoin-fab5233fe6c99d446a2cebc48cf479c3f026c2cc.zip
[qa] test_framework: Set wait-timeout for bitcoind procs
-rw-r--r--qa/rpc-tests/test_framework/util.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/qa/rpc-tests/test_framework/util.py b/qa/rpc-tests/test_framework/util.py
index 6784177aa..d62b8ac55 100644
--- a/qa/rpc-tests/test_framework/util.py
+++ b/qa/rpc-tests/test_framework/util.py
@@ -35,6 +35,8 @@ PORT_MIN = 11000
# The number of ports to "reserve" for p2p and rpc, each
PORT_RANGE = 5000
+BITCOIND_PROC_WAIT_TIMEOUT = 60
+
class PortSeed:
# Must be initialized with a unique integer for each process
@@ -325,7 +327,7 @@ def stop_node(node, i):
node.stop()
except http.client.CannotSendRequest as e:
print("WARN: Unable to stop node: " + repr(e))
- bitcoind_processes[i].wait()
+ bitcoind_processes[i].wait(timeout=BITCOIND_PROC_WAIT_TIMEOUT)
del bitcoind_processes[i]
def stop_nodes(nodes):
@@ -343,7 +345,7 @@ def set_node_times(nodes, t):
def wait_bitcoinds():
# Wait for all bitcoinds to cleanly exit
for bitcoind in bitcoind_processes.values():
- bitcoind.wait()
+ bitcoind.wait(timeout=BITCOIND_PROC_WAIT_TIMEOUT)
bitcoind_processes.clear()
def connect_nodes(from_connection, node_num):