diff options
| author | MarcoFalke <[email protected]> | 2016-05-14 13:01:31 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2016-05-15 12:58:53 +0200 |
| commit | fac93497986b5f74716383bf26c78406253c625a (patch) | |
| tree | 10656400cfb00351ed99475fbf98eff13d4e4d9a /qa/rpc-tests/rpcbind_test.py | |
| parent | Merge #8046: [Qt][OSX] Fix Cmd-Q / Menu Quit shutdown on OSX (diff) | |
| download | discoin-fac93497986b5f74716383bf26c78406253c625a.tar.xz discoin-fac93497986b5f74716383bf26c78406253c625a.zip | |
[qa] Remove hardcoded "4 nodes" from test_framework
Diffstat (limited to 'qa/rpc-tests/rpcbind_test.py')
| -rwxr-xr-x | qa/rpc-tests/rpcbind_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/rpc-tests/rpcbind_test.py b/qa/rpc-tests/rpcbind_test.py index 7b7c01f99..572273566 100755 --- a/qa/rpc-tests/rpcbind_test.py +++ b/qa/rpc-tests/rpcbind_test.py @@ -24,7 +24,7 @@ def run_bind_test(tmpdir, allow_ips, connect_to, addresses, expected): if allow_ips: base_args += ['-rpcallowip=' + x for x in allow_ips] binds = ['-rpcbind='+addr for addr in addresses] - nodes = start_nodes(1, tmpdir, [base_args + binds], connect_to) + nodes = start_nodes(self.num_nodes, tmpdir, [base_args + binds], connect_to) try: pid = bitcoind_processes[0].pid assert_equal(set(get_bind_addrs(pid)), set(expected)) @@ -38,7 +38,7 @@ def run_allowip_test(tmpdir, allow_ips, rpchost, rpcport): at a non-localhost IP. ''' base_args = ['-disablewallet', '-nolisten'] + ['-rpcallowip='+x for x in allow_ips] - nodes = start_nodes(1, tmpdir, [base_args]) + nodes = start_nodes(self.num_nodes, tmpdir, [base_args]) try: # connect to node through non-loopback interface url = "http://rt:rt@%s:%d" % (rpchost, rpcport,) |