From 7a1d13a77e8cb38ec7d64daac65a6e2dcd4b6bc6 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 18 Feb 2019 13:22:11 +1030 Subject: [PATCH] pytest: make test_pay_direct more robust. We had occasional failures, because the fuzz could overwhelm the difference in routes. Increasing the amount to 2,000,000 millisatoshis makes the riskfactor 53msat (2000000 * 14 * 10 / 5259600) which is always greater than the worst-case fuzz of 5% on the fee of 1002msat. Signed-off-by: Rusty Russell --- tests/test_pay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_pay.py b/tests/test_pay.py index cfbf71398..53962e1c6 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -1388,7 +1388,7 @@ def test_pay_direct(node_factory, bitcoind): # Try multiple times to ensure that route randomization # will not override our preference for direct route. for i in range(8): - inv = l3.rpc.invoice(15000000, 'pay{}'.format(i), 'desc')['bolt11'] + inv = l3.rpc.invoice(20000000, 'pay{}'.format(i), 'desc')['bolt11'] l0.rpc.pay(inv)