drain: upgrade testcase for new setchannel command

This commit is contained in:
Michael Schmoock
2022-04-03 17:06:52 +02:00
parent 5c43c7f3bf
commit f022ca380d

View File

@@ -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)