Browse Source

pytest: Parametrize test_deprecated_closing_compat for elements

travis-debug
Christian Decker 5 years ago
parent
commit
6cc60f57a4
  1. 4
      tests/test_closing.py

4
tests/test_closing.py

@ -357,12 +357,12 @@ def test_closing_specified_destination(node_factory, bitcoind, chainparams):
@unittest.skipIf(not COMPAT, "needs COMPAT=1") @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: """ The old-style close command is:
close {id} {force} {timeout} close {id} {force} {timeout}
""" """
l1, l2 = node_factory.get_nodes(2, opts=[{'allow-deprecated-apis': True}, {}]) l1, l2 = node_factory.get_nodes(2, opts=[{'allow-deprecated-apis': True}, {}])
addr = 'bcrt1qeyyk6sl5pr49ycpqyckvmttus5ttj25pd0zpvg' addr = chainparams['example_addr']
nodeid = l2.info['id'] nodeid = l2.info['id']
l1.rpc.check(command_to_check='close', id=nodeid) l1.rpc.check(command_to_check='close', id=nodeid)

Loading…
Cancel
Save