From d6bf7930b84a0957aace67cfee584b20bda60854 Mon Sep 17 00:00:00 2001 From: "ZmnSCPxj, ZmnSCPxj jxPCSmnZ" Date: Wed, 18 Apr 2018 09:57:02 +0800 Subject: [PATCH] Loosen` close` timeout in `test_closing_different_fees` --- tests/test_lightningd.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index d9acf69c3..c93bdf8b7 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -1333,10 +1333,16 @@ class LightningDTests(BaseLightningDTests): self.pay(l1, p, 100000000) # Now close - closes = [self.executor.submit(l1.rpc.close, p.info['id']) for p in peers] + # All closes occur in parallel, and on Travis, + # ALL those lightningd are running on a single core, + # so increase the timeout so that this test will pass + # when valgrind is enabled. + # (close timeout defaults to 30 as of this writing, more + # than double the default) + closes = [self.executor.submit(l1.rpc.close, p.info['id'], False, 72) for p in peers] for c in closes: - c.result(30) + c.result(72) bitcoind.generate_block(1) for p in peers: