From c4094c8de14915b22c99f2b3fbf8408dfa9c4cb6 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Fri, 9 Aug 2019 02:22:20 +0300 Subject: [PATCH] Few more tiny trivial fixes --- test/functional/dip3-deterministicmns.py | 4 ++-- test/functional/keypool-hd.py | 2 +- test/functional/test_framework/test_framework.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/dip3-deterministicmns.py b/test/functional/dip3-deterministicmns.py index 199ac8f994..e8d9542206 100755 --- a/test/functional/dip3-deterministicmns.py +++ b/test/functional/dip3-deterministicmns.py @@ -34,8 +34,8 @@ class DIP3Test(BitcoinTestFramework): def start_controller_node(self, extra_args=None): self.log.info("starting controller node") - if self.nodes is None: - self.nodes = [None] + if len(self.nodes) == 0: + self.nodes.append(None) args = self.extra_args if extra_args is not None: args += extra_args diff --git a/test/functional/keypool-hd.py b/test/functional/keypool-hd.py index 312e10b639..a4be166b5d 100755 --- a/test/functional/keypool-hd.py +++ b/test/functional/keypool-hd.py @@ -28,7 +28,7 @@ class KeyPoolTest(BitcoinTestFramework): # Encrypt wallet and wait to terminate nodes[0].encryptwallet('test') - bitcoind_processes[0].wait() + self.bitcoind_processes[0].wait() # Restart node 0 nodes[0] = self.start_node(0, self.options.tmpdir, ['-usehd=1'], stderr=sys.stdout) # Keep creating keys diff --git a/test/functional/test_framework/test_framework.py b/test/functional/test_framework/test_framework.py index 63ffea6797..fd94b45d3f 100755 --- a/test/functional/test_framework/test_framework.py +++ b/test/functional/test_framework/test_framework.py @@ -421,7 +421,7 @@ class BitcoinTestFramework(object): args.extend(extra_args) self.bitcoind_processes[i] = subprocess.Popen(args, stderr=stderr) self.log.debug("initialize_chain: dashd started, waiting for RPC to come up") - self.wait_for_bitcoind_start(bitcoind_processes[i], datadir, i) + self._wait_for_bitcoind_start(self.bitcoind_processes[i], datadir, i) self.log.debug("initialize_chain: RPC successfully started") self.nodes = []