Skip to content

Commit 8fedb26

Browse files
committed
pytest: fix test_xpay_bolt12_no_mpp
When we merged blinded paths for nodes with no address (6e4ff6a), this test broke. We need to prevent that, otherwise: ``` > assert ret['successful_parts'] == 2 E assert 1 == 2 tests/test_xpay.py:677: AssertionError ``` Signed-off-by: Rusty Russell <[email protected]>
1 parent 38b9cb9 commit 8fedb26

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_xpay.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,8 @@ def test_xpay_no_mpp(node_factory, chainparams):
653653

654654
def test_xpay_bolt12_no_mpp(node_factory, chainparams):
655655
"""We should not (yet!) avoid mpp if BOLT12 invoice doesn't say we should"""
656-
l1, l2, l3, l4 = node_factory.get_nodes(4, opts=[{}, {}, {'dev-force-features': -17}, {}])
656+
# l4 needs dev-allow-localhost so it considers itself to have an advertized address, and doesn't create a blinded path from l2/l4.
657+
l1, l2, l3, l4 = node_factory.get_nodes(4, opts=[{}, {}, {'dev-force-features': -17, 'dev-allow-localhost': None}, {}])
657658
node_factory.join_nodes([l1, l2, l3], wait_for_announce=True)
658659
node_factory.join_nodes([l1, l4, l3], wait_for_announce=True)
659660

0 commit comments

Comments
 (0)