From 8c99cffac763e9a5b488897dd80d091c7b72e920 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sun, 14 Apr 2019 22:58:25 +0200 Subject: [PATCH] tests: try to work around some frequent time outs in our checks * tests/python/ipnbdoctest.py: Augment time limits. --- tests/python/ipnbdoctest.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/python/ipnbdoctest.py b/tests/python/ipnbdoctest.py index 9b8ed95ee..107adff50 100755 --- a/tests/python/ipnbdoctest.py +++ b/tests/python/ipnbdoctest.py @@ -206,19 +206,19 @@ def _wait_for_ready_backport(kc): # Flush IOPub channel while True: try: - msg = kc.get_iopub_msg(block=True, timeout=0.2) + msg = kc.get_iopub_msg(block=True, timeout=1) except Empty: break def run_cell(kc, cell): kc.execute(cell.source) - # wait for finish, maximum 20s - reply = kc.get_shell_msg(timeout=20) + # wait for finish, maximum 30s + reply = kc.get_shell_msg(timeout=30) outs = [] while True: try: - msg = kc.get_iopub_msg(timeout=0.2) + msg = kc.get_iopub_msg(timeout=1) except Empty: break