Skip to content

Commit

Permalink
jitrebalance: fix test for latest c-lightning which required payment_…
Browse files Browse the repository at this point in the history
…secret

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
  • Loading branch information
rustyrussell committed Jul 23, 2021
1 parent ca375ad commit 87c9f56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jitrebalance/test_jitrebalance.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def no_pending_htlcs():
exclude=[scid + '/0', scid + '/1'])['route']

# This will succeed with l2 doing a rebalancing just-in-time !
l1.rpc.sendpay(route, inv['payment_hash'])
l1.rpc.sendpay(route, inv['payment_hash'], payment_secret=inv.get('payment_secret'))
assert l1.rpc.waitsendpay(inv['payment_hash'])['status'] == 'complete'
assert l2.daemon.is_in_log('Succesfully re-filled outgoing capacity')

Expand Down Expand Up @@ -146,7 +146,7 @@ def no_pending_htlcs():
exclude=[scid + '/0', scid + '/1'])['route']

# This will exclude [l5, l3] and fail as there is no route left
l1.rpc.sendpay(route, inv['payment_hash'])
l1.rpc.sendpay(route, inv['payment_hash'], payment_secret=inv.get('payment_secret'))
with pytest.raises(RpcError, match='WIRE_TEMPORARY_CHANNEL_FAILURE'):
l1.rpc.waitsendpay(inv['payment_hash'])
assert l2.daemon.is_in_log('Could not get a route, no remaining one?')
Expand Down

0 comments on commit 87c9f56

Please sign in to comment.