Skip to content

Commit

Permalink
pytest: update test_getremoteliquidity
Browse files Browse the repository at this point in the history
  • Loading branch information
endothermicdev committed Jul 10, 2023
1 parent c1366ac commit 5243ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand All @@ -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")
Expand Down

0 comments on commit 5243ff2

Please sign in to comment.