From 87c9f56f75bba47ce29745f6e2e4acd947cbb4c5 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 23 Jul 2021 21:25:08 +0930 Subject: [PATCH] jitrebalance: fix test for latest c-lightning which required payment_secret Signed-off-by: Rusty Russell --- jitrebalance/test_jitrebalance.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jitrebalance/test_jitrebalance.py b/jitrebalance/test_jitrebalance.py index bb112fd03..8e241890f 100644 --- a/jitrebalance/test_jitrebalance.py +++ b/jitrebalance/test_jitrebalance.py @@ -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') @@ -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?')