From 93596e36cda393aea7df9e35a240a3f34c563e7f Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 11 Feb 2020 17:46:40 +0100 Subject: [PATCH] fixup! pytest: test Bitcoin plugin registration and the bcli plugin --- tests/test_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index d4611fb22c84..5d448def1750 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -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. @@ -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