(node_factory)
| 549 | |
| 550 | |
| 551 | def test_xpay_preapprove(node_factory): |
| 552 | l1, l2 = node_factory.line_graph(2, opts={'dev-hsmd-fail-preapprove': None}) |
| 553 | |
| 554 | inv = l2.rpc.invoice(100000, "test_xpay_preapprove", "test_xpay_preapprove")['bolt11'] |
| 555 | |
| 556 | with pytest.raises(RpcError, match=r"invoice was declined"): |
| 557 | l1.rpc.check('xpay', invstring=inv) |
| 558 | |
| 559 | with pytest.raises(RpcError, match=r"invoice was declined"): |
| 560 | l1.rpc.xpay(inv) |
| 561 | |
| 562 | |
| 563 | def test_xpay_maxdelay(node_factory): |
nothing calls this directly
no test coverage detected