tests: try to work around some frequent time outs in our checks
* tests/python/ipnbdoctest.py: Augment time limits.
This commit is contained in:
parent
d65ceb0bc8
commit
0c8e6a38a8
1 changed files with 4 additions and 4 deletions
|
|
@ -206,19 +206,19 @@ def _wait_for_ready_backport(kc):
|
||||||
# Flush IOPub channel
|
# Flush IOPub channel
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
msg = kc.get_iopub_msg(block=True, timeout=0.2)
|
msg = kc.get_iopub_msg(block=True, timeout=1)
|
||||||
except Empty:
|
except Empty:
|
||||||
break
|
break
|
||||||
|
|
||||||
def run_cell(kc, cell):
|
def run_cell(kc, cell):
|
||||||
kc.execute(cell.source)
|
kc.execute(cell.source)
|
||||||
# wait for finish, maximum 20s
|
# wait for finish, maximum 30s
|
||||||
reply = kc.get_shell_msg(timeout=20)
|
reply = kc.get_shell_msg(timeout=30)
|
||||||
outs = []
|
outs = []
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
msg = kc.get_iopub_msg(timeout=0.2)
|
msg = kc.get_iopub_msg(timeout=1)
|
||||||
except Empty:
|
except Empty:
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue