Skip to content

Commit

Permalink
pytest: give more time for test_closing_torture.
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
rustyrussell authored and cdecker committed Jul 29, 2018
1 parent 9e14d6c commit 65103ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_lightningd.py
Original file line number Diff line number Diff line change
Expand Up @@ -1489,9 +1489,9 @@ def test_closing_torture(self):
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)
Expand Down

0 comments on commit 65103ac

Please sign in to comment.