Skip to content

Commit

Permalink
pytest: Reproduce ElementsProject#4345
Browse files Browse the repository at this point in the history
  • Loading branch information
cdecker committed Feb 10, 2021
1 parent ce6da69 commit d2281f5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_pay.py
Original file line number Diff line number Diff line change
Expand Up @@ -4132,3 +4132,14 @@ def test_sendinvoice(node_factory, bitcoind):

l1.rpc.call('sendinvoice', {'offer': refund,
'label': 'test sendinvoice refund'})


@pytest.mark.xfail(strict=True)
def test_self_pay(node_factory):
"""Repro test for issue 4345: pay ourselves via the pay plugin.
"""
l1, l2 = node_factory.line_graph(2, wait_for_announce=True)

inv = l1.rpc.invoice(10000, 'test', 'test')['bolt11']
l1.rpc.pay(inv)

0 comments on commit d2281f5

Please sign in to comment.