Skip to content

Commit 56c1093

Browse files
laanwjgmaxwell
authored andcommitted
fix tests for #5655
1 parent 16a5c18 commit 56c1093

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

qa/rpc-tests/httpbasics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
import urlparse
2222

2323
class HTTPBasicsTest (BitcoinTestFramework):
24+
def setup_nodes(self):
25+
return start_nodes(4, self.options.tmpdir, extra_args=[['-rpckeepalive']]*4)
26+
2427
def run_test(self):
2528

2629
#################################################

qa/rpc-tests/test_framework.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@ def setup_chain(self):
3333
print("Initializing test directory "+self.options.tmpdir)
3434
initialize_chain(self.options.tmpdir)
3535

36+
def setup_nodes(self):
37+
return start_nodes(4, self.options.tmpdir)
38+
3639
def setup_network(self, split = False):
37-
self.nodes = start_nodes(4, self.options.tmpdir)
40+
self.nodes = self.setup_nodes()
3841

3942
# Connect the nodes as a "chain". This allows us
4043
# to split the network between nodes 1 and 2 to get

0 commit comments

Comments
 (0)