aboutsummaryrefslogtreecommitdiff
path: root/qa/rpc-tests/proxy_test.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/proxy_test.py
parent169d379c98357a17e634f34b5e72033c69f9a7cb (diff)
downloadbitcoin-fac93497986b5f74716383bf26c78406253c625a.tar.xz
[qa] Remove hardcoded "4 nodes" from test_framework
Diffstat (limited to 'qa/rpc-tests/proxy_test.py')
-rwxr-xr-xqa/rpc-tests/proxy_test.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/qa/rpc-tests/proxy_test.py b/qa/rpc-tests/proxy_test.py
index 6c7b201d56..27160cae07 100755
--- a/qa/rpc-tests/proxy_test.py
+++ b/qa/rpc-tests/proxy_test.py
@@ -36,6 +36,10 @@ addnode connect to generic DNS name
class ProxyTest(BitcoinTestFramework):
def __init__(self):
+ super().__init__()
+ self.num_nodes = 4
+ self.setup_clean_chain = False
+
self.have_ipv6 = test_ipv6_local()
# Create two proxies on different ports
# ... one unauthenticated
@@ -77,7 +81,7 @@ class ProxyTest(BitcoinTestFramework):
]
if self.have_ipv6:
args[3] = ['-listen', '-debug=net', '-debug=proxy', '-proxy=[%s]:%i' % (self.conf3.addr),'-proxyrandomize=0', '-noonion']
- return start_nodes(4, self.options.tmpdir, extra_args=args)
+ return start_nodes(self.num_nodes, self.options.tmpdir, extra_args=args)
def node_test(self, node, proxies, auth, test_onion=True):
rv = []