From 012c2ecf176569b2db1a0e51772d798626e9a8fd Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 22 Oct 2021 18:02:57 +0200 Subject: [PATCH] pytest: Create less dust in `test_delpay_payment_split` We were triggering the dust panic. --- tests/test_pay.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/test_pay.py b/tests/test_pay.py index 7a8b5b6f0..e7a0145b6 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -3781,17 +3781,16 @@ def test_delpay_payment_split(node_factory, bitcoind): Test behavior of delpay with an MPP """ MPP_TARGET_SIZE = 10**7 # Taken from libpluin-pay.c - amt = 5 * MPP_TARGET_SIZE + amt = 4 * MPP_TARGET_SIZE l1, l2, l3 = node_factory.line_graph(3, fundamount=10**5, wait_for_announce=True) - inv = l3.rpc.invoice(amt, 'lbl', 'desc') l1.rpc.pay(inv['bolt11']) assert len(l1.rpc.listpays()['pays']) == 1 delpay_result = l1.rpc.delpay(inv['payment_hash'], 'complete')['payments'] - assert len(delpay_result) >= 5 + assert len(delpay_result) >= 4 assert len(l1.rpc.listpays()['pays']) == 0