diff options
| author | Jon Atack <[email protected]> | 2020-04-20 23:24:54 +0200 |
|---|---|---|
| committer | Jon Atack <[email protected]> | 2020-04-21 15:38:26 +0200 |
| commit | 8f5dc8800aeb524eee2fa2451cd22883b7b2bfec (patch) | |
| tree | 38ddcd11cacb7286be0e662d82af865d0859f5ee /test/functional/interface_bitcoin_cli.py | |
| parent | Merge #18721: test: Fix linter issue (diff) | |
| download | discoin-8f5dc8800aeb524eee2fa2451cd22883b7b2bfec.tar.xz discoin-8f5dc8800aeb524eee2fa2451cd22883b7b2bfec.zip | |
test: display command line options passed to send_cli() in debug log
and fixup two cli calls from rpc commands to command line options.
Co-authored-by: MarcoFalke <[email protected]>
Diffstat (limited to 'test/functional/interface_bitcoin_cli.py')
| -rwxr-xr-x | test/functional/interface_bitcoin_cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/interface_bitcoin_cli.py b/test/functional/interface_bitcoin_cli.py index 2e80d7a24..377ae10e4 100755 --- a/test/functional/interface_bitcoin_cli.py +++ b/test/functional/interface_bitcoin_cli.py @@ -51,7 +51,7 @@ class TestBitcoinCli(BitcoinTestFramework): self.log.info("Test -getinfo returns expected network and blockchain info") if self.is_wallet_compiled(): self.nodes[0].encryptwallet(password) - cli_get_info = self.nodes[0].cli().send_cli('-getinfo') + cli_get_info = self.nodes[0].cli('-getinfo').send_cli() network_info = self.nodes[0].getnetworkinfo() blockchain_info = self.nodes[0].getblockchaininfo() assert_equal(cli_get_info['version'], network_info['version']) @@ -77,7 +77,7 @@ class TestBitcoinCli(BitcoinTestFramework): self.log.info("Test -version with node stopped") self.stop_node(0) - cli_response = self.nodes[0].cli().send_cli('-version') + cli_response = self.nodes[0].cli('-version').send_cli() assert "{} RPC client version".format(self.config['environment']['PACKAGE_NAME']) in cli_response self.log.info("Test -rpcwait option successfully waits for RPC connection") |