tests,fundchannel: return the result from the fundchannel rpc call

We need this so we can verify the 'close_to' result
This commit is contained in:
niftynei
2020-10-15 13:10:31 -05:00
committed by Rusty Russell
parent ee329f08de
commit de34f08b82
7 changed files with 60 additions and 59 deletions

View File

@@ -347,7 +347,7 @@ def test_htlc_out_timeout(node_factory, bitcoind, executor):
l2 = node_factory.get_node()
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
chanid = l1.fundchannel(l2, 10**6)
chanid, _ = l1.fundchannel(l2, 10**6)
# Wait for route propagation.
l1.wait_channel_active(chanid)
@@ -414,7 +414,7 @@ def test_htlc_in_timeout(node_factory, bitcoind, executor):
l2 = node_factory.get_node()
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
chanid = l1.fundchannel(l2, 10**6)
chanid, _ = l1.fundchannel(l2, 10**6)
l1.wait_channel_active(chanid)
sync_blockheight(bitcoind, [l1, l2])