Skip to content

Commit 67e846f

Browse files
committed
pytest: Adjust test now that routehint order changed
1 parent 85ec438 commit 67e846f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/test_pay.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,11 @@ def test_pay_limits(node_factory, compat):
106106
# It should have retried two more times (one without routehint and one with routehint)
107107
status = l1.rpc.call('paystatus', {'bolt11': inv['bolt11']})['pay'][0]['attempts']
108108

109-
# Will directly exclude channels and routehints that don't match our
110-
# fee expectations. The first attempt notices that and terminates
111-
# directly.
112-
assert(len(status) == 1)
109+
# We have an internal test to see if we can reach the destination directly
110+
# without a routehint, that will enable a NULL-routehint. We will then try
111+
# with the provided routehint, and the NULL routehint, resulting in 2
112+
# attempts.
113+
assert(len(status) == 2)
113114
assert(status[0]['failure']['code'] == 205)
114115

115116
failmsg = r'CLTV delay exceeds our CLTV budget'
@@ -121,7 +122,7 @@ def test_pay_limits(node_factory, compat):
121122
# Should also have retried two more times.
122123
status = l1.rpc.call('paystatus', {'bolt11': inv['bolt11']})['pay'][1]['attempts']
123124

124-
assert(len(status) == 1)
125+
assert(len(status) == 2)
125126
assert(status[0]['failure']['code'] == 205)
126127

127128
# This works, because fee is less than exemptfee.

0 commit comments

Comments
 (0)