Browse Source

fix tests for #5655

tags/v0.15.1
Wladimir J. van der Laan 6 years ago
parent
commit
56c1093dae
2 changed files with 7 additions and 1 deletions
  1. 3
    0
      qa/rpc-tests/httpbasics.py
  2. 4
    1
      qa/rpc-tests/test_framework.py

+ 3
- 0
qa/rpc-tests/httpbasics.py View File

@@ -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):
#################################################

+ 4
- 1
qa/rpc-tests/test_framework.py View File

@@ -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

Loading…
Cancel
Save