File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
qa/rpc-tests/test_framework Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 35
35
# The number of ports to "reserve" for p2p and rpc, each
36
36
PORT_RANGE = 5000
37
37
38
+ BITCOIND_PROC_WAIT_TIMEOUT = 60
39
+
38
40
39
41
class PortSeed :
40
42
# Must be initialized with a unique integer for each process
@@ -325,7 +327,7 @@ def stop_node(node, i):
325
327
node .stop ()
326
328
except http .client .CannotSendRequest as e :
327
329
print ("WARN: Unable to stop node: " + repr (e ))
328
- bitcoind_processes [i ].wait ()
330
+ bitcoind_processes [i ].wait (timeout = BITCOIND_PROC_WAIT_TIMEOUT )
329
331
del bitcoind_processes [i ]
330
332
331
333
def stop_nodes (nodes ):
@@ -343,7 +345,7 @@ def set_node_times(nodes, t):
343
345
def wait_bitcoinds ():
344
346
# Wait for all bitcoinds to cleanly exit
345
347
for bitcoind in bitcoind_processes .values ():
346
- bitcoind .wait ()
348
+ bitcoind .wait (timeout = BITCOIND_PROC_WAIT_TIMEOUT )
347
349
bitcoind_processes .clear ()
348
350
349
351
def connect_nodes (from_connection , node_num ):
You can’t perform that action at this time.
0 commit comments