From 4778d0f095fefa821a5b9381a806f769f7e242ea Mon Sep 17 00:00:00 2001 From: Alex Myers Date: Mon, 10 Jul 2023 14:50:21 -0500 Subject: [PATCH] pytest: update test_getremoteliquidity --- tests/test_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 8519537fdb21..11f274bb06e3 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -4272,9 +4272,7 @@ def test_getremoteliquidity(node_factory, bitcoind): for chan in [scid12, scid23, scid34, scid14]: l1.wait_channel_active(chan) - print(f"ready to test getremoteliquidity({[l3.info['id'], l4.info['id']]})") liquidity_result = l1.rpc.getremoteliquidity([l3.info['id'], l4.info['id']]) - print(liquidity_result) should_return = {'nodes': [{'node_id': l3.info['id'], 'peer_features': l3.info['our_features']['node'], 'scids': [], 'capacity_msat': 5645533184}, {'node_id': l4.info['id'], 'peer_features': l4.info['our_features']['node'], @@ -4287,6 +4285,8 @@ def test_getremoteliquidity(node_factory, bitcoind): 'capacity_msat': 3368026112}]} assert(should_return == liquidity_result) # Also test listincoming2 while we have the channel topology set up for it. + print(f"getremoteliquidity({l2.info['id']},{l4.info['id']})") + print(l1.rpc.getremoteliquidity([l2.info['id'], l4.info['id']])) print("listincoming") print(l1.rpc.listincoming()) print("listincoming2")