Skip to content

Commit

Permalink
fixup! pytest: test Bitcoin plugin registration and the bcli plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Feb 11, 2020
1 parent 95563a7 commit 93596e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ def test_bitcoin_backend(node_factory, bitcoind):
" bitcoind")


def test_bcli(node_factory, bitcoind):
def test_bcli(node_factory, bitcoind, chainparams):
"""
This tests the bcli plugin, used to gather Bitcoin data from a local
bitcoind.
Expand All @@ -988,7 +988,7 @@ def test_bcli(node_factory, bitcoind):
"mode": "CONSERVATIVE"})

resp = l1.rpc.call("getchaininfo")
assert resp["chain"] == "regtest"
assert resp["chain"] == chainparams['name']
for field in ["headercount", "blockcount", "ibd"]:
assert field in resp

Expand Down

0 comments on commit 93596e3

Please sign in to comment.