mirror of
https://github.com/aljazceru/plugins.git
synced 2026-01-07 15:24:21 +01:00
jitrebalance: fix test for latest c-lightning which required payment_secret
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -79,7 +79,7 @@ def test_simple_rebalance(node_factory):
|
||||
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')
|
||||
|
||||
@@ -146,7 +146,7 @@ def test_rebalance_failure(node_factory):
|
||||
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?')
|
||||
|
||||
Reference in New Issue
Block a user