Skip to content

Commit dc150f9

Browse files
committed
Increase timeouts in test_repl
1 parent d07160f commit dc150f9

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python.test/src/tests

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_repl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def validate_repl(stdin, python_args=(), ignore_preamble=True):
7878
index = -1
7979
whole_out = ''
8080
while True:
81-
rlist, _, _ = select.select([pty_parent], [], [], 30)
81+
rlist, _, _ = select.select([pty_parent], [], [], 60)
8282
assert pty_parent in rlist, f"Timed out waiting for REPL output. Output: {whole_out}{out}"
8383
out += os.read(pty_parent, 1024).decode('utf-8')
8484
out = out.replace('\r\n', '\n')
@@ -99,7 +99,7 @@ def validate_repl(stdin, python_args=(), ignore_preamble=True):
9999
out = out[-4:]
100100
if index >= len(input_and_output):
101101
os.write(pty_parent, b'\x04') # CTRL-D
102-
proc.wait(timeout=30)
102+
proc.wait(timeout=60)
103103
out = os.read(pty_parent, 1024).decode('utf-8')
104104
out = re.sub(r'\x1b\[\?2004[hl]', '', out)
105105
assert not out.strip(), f"Garbage after EOF:\n{out!r}"

0 commit comments

Comments
 (0)