Skip to content

Commit

Permalink
Partially backport bitcoin#10838 for bitcoin_cli.py
Browse files Browse the repository at this point in the history
This allows further backports while postponing removal of "getinfo"
  • Loading branch information
codablock authored and barrystyle committed Jan 22, 2020
1 parent dcb4b05 commit 8f2dd3a
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions test/functional/bitcoin_cli.py
Expand Up @@ -15,9 +15,15 @@ def set_test_params(self):
def run_test(self):
"""Main test logic"""

self.log.info("Compare responses from getinfo RPC and `bitcoin-cli getinfo`")
cli_get_info = self.nodes[0].cli.getinfo()
rpc_get_info = self.nodes[0].getinfo()
self.log.info("Compare responses from gewalletinfo RPC and `bitcoin-cli getwalletinfo`")
cli_get_info = self.nodes[0].cli.getwalletinfo()
rpc_get_info = self.nodes[0].getwalletinfo()

assert_equal(cli_get_info, rpc_get_info)

self.log.info("Compare responses from getblockchaininfo RPC and `bitcoin-cli getblockchaininfo`")
cli_get_info = self.nodes[0].cli.getblockchaininfo()
rpc_get_info = self.nodes[0].getblockchaininfo()

assert_equal(cli_get_info, rpc_get_info)

Expand Down

0 comments on commit 8f2dd3a

Please sign in to comment.