From b1182702ae488300160a2ccb2f4d39254e0b5c24 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sun, 15 Jul 2018 11:05:03 +0930 Subject: [PATCH] pytest: increase timeout for test_payment_failed_persistence This happened under travis. 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 f12486978..5527ee050 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -4218,7 +4218,7 @@ class LightningDTests(BaseLightningDTests): self.fund_channel(l1, l2, 100000) # Expires almost immediately, so it will fail. - inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1', 2) + inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1', 5) # Fire off a pay request, it'll get interrupted by a restart self.executor.submit(l1.rpc.pay, inv1['bolt11']) @@ -4233,7 +4233,7 @@ class LightningDTests(BaseLightningDTests): del l1.daemon.opts['dev-disconnect'] # Make sure invoice has expired. - time.sleep(3) + time.sleep(5 + 1) # Should reconnect, and fail the payment l1.start()