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
@@ -332,7 +334,7 @@ def stop_node(node, i):
332
334
node .stop ()
333
335
except http .client .CannotSendRequest as e :
334
336
print ("WARN: Unable to stop node: " + repr (e ))
335
- bitcoind_processes [i ].wait ()
337
+ bitcoind_processes [i ].wait (timeout = BITCOIND_PROC_WAIT_TIMEOUT )
336
338
del bitcoind_processes [i ]
337
339
338
340
def stop_nodes (nodes ):
@@ -350,7 +352,7 @@ def set_node_times(nodes, t):
350
352
def wait_bitcoinds ():
351
353
# Wait for all bitcoinds to cleanly exit
352
354
for bitcoind in bitcoind_processes .values ():
353
- bitcoind .wait ()
355
+ bitcoind .wait (timeout = BITCOIND_PROC_WAIT_TIMEOUT )
354
356
bitcoind_processes .clear ()
355
357
356
358
def connect_nodes (from_connection , node_num ):
You can’t perform that action at this time.
0 commit comments