(node_factory, benchmark)
| 117 | |
| 118 | |
| 119 | def test_pay(node_factory, benchmark): |
| 120 | l1, l2 = get_bench_line_graph(node_factory, 2) |
| 121 | |
| 122 | invoices = [] |
| 123 | for _ in range(1, 100): |
| 124 | invoice = l2.rpc.invoice(1000, 'invoice-{}'.format(random.random()), 'desc')['bolt11'] |
| 125 | invoices.append(invoice) |
| 126 | |
| 127 | def do_pay(l1, l2): |
| 128 | l1.rpc.xpay(invoices.pop()) |
| 129 | |
| 130 | benchmark(do_pay, l1, l2) |
| 131 | |
| 132 | |
| 133 | def test_start(node_factory, benchmark): |
nothing calls this directly
no test coverage detected