From 6cc60f57a40d73039a722922341ff1d0b1e3b003 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 2 Dec 2019 12:39:56 +0100 Subject: [PATCH] pytest: Parametrize test_deprecated_closing_compat for elements --- tests/test_closing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_closing.py b/tests/test_closing.py index 0f3171ac5..ee8ec14df 100644 --- a/tests/test_closing.py +++ b/tests/test_closing.py @@ -357,12 +357,12 @@ def test_closing_specified_destination(node_factory, bitcoind, chainparams): @unittest.skipIf(not COMPAT, "needs COMPAT=1") -def test_deprecated_closing_compat(node_factory, bitcoind): +def test_deprecated_closing_compat(node_factory, bitcoind, chainparams): """ The old-style close command is: close {id} {force} {timeout} """ l1, l2 = node_factory.get_nodes(2, opts=[{'allow-deprecated-apis': True}, {}]) - addr = 'bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg' + addr = chainparams['example_addr'] nodeid = l2.info['id'] l1.rpc.check(command_to_check='close', id=nodeid)