From 465349350731b861bcbf1ce094be4075e95b4328 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 19 Feb 2018 12:28:52 +1030 Subject: [PATCH] test_lightningd: make test_payment_failed_persistence more reliable. We don't want the invoice to fail locally, which can happen if we're slow enough. Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index a05576178..fd31f7ff2 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -2997,7 +2997,7 @@ class LightningDTests(BaseLightningDTests): self.fund_channel(l1, l2, 100000) # Expires almost immediately, so it will fail. - inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1', 1) + inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1', 2) # Fire off a pay request, it'll get interrupted by a restart fut = self.executor.submit(l1.rpc.pay, inv1['bolt11']) @@ -3012,7 +3012,7 @@ class LightningDTests(BaseLightningDTests): l1.daemon.cmd_line.remove('--dev-disconnect=dev_disconnect') # Make sure invoice has expired. - time.sleep(2) + time.sleep(3) # Should reconnect, and fail the payment l1.daemon.start()