aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/multi_rpc.py
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2016-05-14 13:01:31 +0200
committerMarcoFalke <falke.marco@gmail.com>2016-05-15 12:58:53 +0200
commitfac93497986b5f74716383bf26c78406253c625a (patch)
tree10656400cfb00351ed99475fbf98eff13d4e4d9a /qa/rpc-tests/multi_rpc.py
parent169d379c98357a17e634f34b5e72033c69f9a7cb (diff)
[qa] Remove hardcoded "4 nodes" from test_framework
Diffstat (limited to 'qa/rpc-tests/multi_rpc.py')
-rwxr-xr-xqa/rpc-tests/multi_rpc.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/qa/rpc-tests/multi_rpc.py b/qa/rpc-tests/multi_rpc.py
index 577d80949d..24373b257d 100755
--- a/qa/rpc-tests/multi_rpc.py
+++ b/qa/rpc-tests/multi_rpc.py
@@ -8,18 +8,21 @@
#
from test_framework.test_framework import BitcoinTestFramework
-from test_framework.util import *
+from test_framework.util import str_to_b64str, assert_equal
+import os
import http.client
import urllib.parse
class HTTPBasicsTest (BitcoinTestFramework):
- def setup_nodes(self):
- return start_nodes(4, self.options.tmpdir)
+
+ def __init__(self):
+ super().__init__()
+ self.setup_clean_chain = False
+ self.num_nodes = 1
def setup_chain(self):
- print("Initializing test directory "+self.options.tmpdir)
- initialize_chain(self.options.tmpdir)
+ super().setup_chain()
#Append rpcauth to bitcoin.conf before initialization
rpcauth = "rpcauth=rt:93648e835a54c573682c2eb19f882535$7681e9c5b74bdd85e78166031d2058e1069b3ed7ed967c93fc63abba06f31144"
rpcauth2 = "rpcauth=rt2:f8607b1a88861fac29dfccf9b52ff9f$ff36a0c23c8c62b4846112e50fa888416e94c17bfd4c42f88fd8f55ec6a3137e"
@@ -27,6 +30,9 @@ class HTTPBasicsTest (BitcoinTestFramework):
f.write(rpcauth+"\n")
f.write(rpcauth2+"\n")
+ def setup_network(self):
+ self.nodes = self.setup_nodes()
+
def run_test(self):
##################################################