Loosen close timeout in test_closing_different_fees

This commit is contained in:
ZmnSCPxj, ZmnSCPxj jxPCSmnZ 2018-04-18 09:57:02 +08:00 committed by Rusty Russell
parent 0b331a2b60
commit d6bf7930b8

View File

@ -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: