From 65103ac4263341fb97c59dc5ec60da90a3f34850 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 28 Jul 2018 11:26:36 +0930 Subject: [PATCH] pytest: give more time for test_closing_torture. The logs in various Travis failures show that it takes 20 seconds just for closingd to read the init message. As a result, the close times out (default is 30 seconds). Signed-off-by: Rusty Russell --- tests/test_lightningd.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 40b2ef64c..78c67e3ef 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -1489,9 +1489,9 @@ class LightningDTests(BaseLightningDTests): l1.daemon.wait_for_logs(['to CHANNELD_NORMAL']) l2.daemon.wait_for_logs(['to CHANNELD_NORMAL']) - # Start closers. - c1 = self.executor.submit(l1.rpc.close, l2.info['id']) - c2 = self.executor.submit(l2.rpc.close, l1.info['id']) + # Start closers: can take a long time under valgrind! + c1 = self.executor.submit(l1.rpc.close, l2.info['id'], False, 60) + c2 = self.executor.submit(l2.rpc.close, l1.info['id'], False, 60) # Wait for close to finish c1.result(utils.TIMEOUT) c2.result(utils.TIMEOUT)