Skip to content

Commit 012c2ec

Browse files
committed
pytest: Create less dust in test_delpay_payment_split
We were triggering the dust panic.
1 parent 303fbce commit 012c2ec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_pay.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3781,17 +3781,16 @@ def test_delpay_payment_split(node_factory, bitcoind):
37813781
Test behavior of delpay with an MPP
37823782
"""
37833783
MPP_TARGET_SIZE = 10**7 # Taken from libpluin-pay.c
3784-
amt = 5 * MPP_TARGET_SIZE
3784+
amt = 4 * MPP_TARGET_SIZE
37853785

37863786
l1, l2, l3 = node_factory.line_graph(3, fundamount=10**5,
37873787
wait_for_announce=True)
3788-
37893788
inv = l3.rpc.invoice(amt, 'lbl', 'desc')
37903789
l1.rpc.pay(inv['bolt11'])
37913790

37923791
assert len(l1.rpc.listpays()['pays']) == 1
37933792
delpay_result = l1.rpc.delpay(inv['payment_hash'], 'complete')['payments']
3794-
assert len(delpay_result) >= 5
3793+
assert len(delpay_result) >= 4
37953794
assert len(l1.rpc.listpays()['pays']) == 0
37963795

37973796

0 commit comments

Comments
 (0)