From 424770449a66264779a07b52ca101f5f246f4bd3 Mon Sep 17 00:00:00 2001 From: Michael Schmoock Date: Fri, 23 Jul 2021 17:03:03 +0200 Subject: [PATCH] jitrebalance: fix missing payment_secret for sendpay --- jitrebalance/test_jitrebalance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jitrebalance/test_jitrebalance.py b/jitrebalance/test_jitrebalance.py index 8e24189..b92199d 100644 --- a/jitrebalance/test_jitrebalance.py +++ b/jitrebalance/test_jitrebalance.py @@ -154,7 +154,7 @@ def test_rebalance_failure(node_factory): # Now test the timeout on number of attempts l3.rpc.plugin_start(hold_plugin) - l1.rpc.sendpay(route, inv['payment_hash']) + l1.rpc.sendpay(route, inv['payment_hash'], payment_secret=inv.get('payment_secret')) # l3 will hold on the HTLC, and at the time it rejects it, l2 won't try # other routes as it exceeded its timeout with pytest.raises(RpcError, match='WIRE_TEMPORARY_CHANNEL_FAILURE'):