aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-01-14 12:45:11 +0100
committerGregory Maxwell <greg@xiph.org>2015-01-14 09:50:00 -0800
commit56c1093dae0c523f9f643f00c67414691272a983 (patch)
treea24e15e6cb98f4283d12c54720a9785149dc3c91 /qa/rpc-tests
parent16a5c18cea7330bd68dc9d2f768eb518af88795b (diff)
fix tests for #5655
Diffstat (limited to 'qa/rpc-tests')
-rwxr-xr-xqa/rpc-tests/httpbasics.py3
-rwxr-xr-xqa/rpc-tests/test_framework.py5
2 files changed, 7 insertions, 1 deletions
diff --git a/qa/rpc-tests/httpbasics.py b/qa/rpc-tests/httpbasics.py
index 85e85e7f0f..7a9857a771 100755
--- a/qa/rpc-tests/httpbasics.py
+++ b/qa/rpc-tests/httpbasics.py
@@ -21,6 +21,9 @@ except ImportError:
import urlparse
class HTTPBasicsTest (BitcoinTestFramework):
+ def setup_nodes(self):
+ return start_nodes(4, self.options.tmpdir, extra_args=[['-rpckeepalive']]*4)
+
def run_test(self):
#################################################
diff --git a/qa/rpc-tests/test_framework.py b/qa/rpc-tests/test_framework.py
index 6c4ec073c2..4c8a11b821 100755
--- a/qa/rpc-tests/test_framework.py
+++ b/qa/rpc-tests/test_framework.py
@@ -33,8 +33,11 @@ class BitcoinTestFramework(object):
print("Initializing test directory "+self.options.tmpdir)
initialize_chain(self.options.tmpdir)
+ def setup_nodes(self):
+ return start_nodes(4, self.options.tmpdir)
+
def setup_network(self, split = False):
- self.nodes = start_nodes(4, self.options.tmpdir)
+ self.nodes = self.setup_nodes()
# Connect the nodes as a "chain". This allows us
# to split the network between nodes 1 and 2 to get