From 7a88900476830393ab2fb198bee67b28efd24852 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 7 Aug 2023 16:01:33 +0930 Subject: [PATCH] pytest: test for listsendpays and lightning: prefix crash. Signed-off-by: Rusty Russell --- tests/test_pay.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_pay.py b/tests/test_pay.py index 4122da3e2..7838dff25 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -5380,3 +5380,11 @@ def test_strip_lightning_suffix_from_inv(node_factory): listpays = l1.rpc.listpays()["pays"] assert len(listpays) == 3, f"the list pays is bigger than what we expected {listpays}" assert listpays[2]['bolt11'] == inv, f"list pays contains a different invoice, expected is {inv} but we get {listpays[0]['bolt11']}" + + +@pytest.mark.xfail(strict=True) +def test_listsendpays_crash(node_factory): + l1 = node_factory.get_node() + + inv = l1.rpc.invoice(40, "inv", "inv")["bolt11"] + l1.rpc.listsendpays('lightning:' + inv)