From f022ca380d6855024d1a7ec24d0c6486b9f3ab4e Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Sun, 3 Apr 2022 17:06:52 +0200 Subject: [PATCH] drain: upgrade testcase for new setchannel command --- drain/test_drain.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/drain/test_drain.py b/drain/test_drain.py index c3ea225..865fb8a 100644 --- a/drain/test_drain.py +++ b/drain/test_drain.py @@ -49,7 +49,10 @@ def test_drain_and_refill(node_factory, bitcoind): # disable fees to make circular line graph tests a lot easier for n in nodes: - n.rpc.setchannelfee('all', 0, 0) + try: + n.rpc.setchannel('all', 0, 0) + except RpcError: # retry with deprecated command name + n.rpc.setchannelfee('all', 0, 0) # wait for each others gossip bitcoind.generate_block(6) @@ -99,7 +102,10 @@ def test_fill_and_drain(node_factory, bitcoind): # disable fees to make circular line graph tests a lot easier for n in nodes: - n.rpc.setchannelfee('all', 0, 0) + try: + n.rpc.setchannel('all', 0, 0) + except RpcError: # retry with deprecated command name + n.rpc.setchannelfee('all', 0, 0) # wait for each others gossip bitcoind.generate_block(6)