increase timeout since signal delivery on CI is flakey

This commit is contained in:
Kovid Goyal 2022-07-10 17:15:30 +05:30
parent 1c0d1ec8a9
commit 762dfe8315
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -92,7 +92,7 @@ def wait_for_death(exit_code):
pty.set_window_size(columns=cols + 3)
pty.wait_till(lambda: f'Screen size changed: {cols + 3}' in pty.screen_contents())
pty.write_to_child('\x03')
pty.wait_till(lambda: 'KeyboardInterrupt' in pty.screen_contents())
pty.wait_till(lambda: 'KeyboardInterrupt' in pty.screen_contents(), timeout=30)
wait_for_death(signal.SIGINT)
# test passing of data via cwd, env vars and stdin/stdout redirection
@ -182,7 +182,7 @@ def assert_signal():
nonlocal found_signal
found_signal = False
st = time.monotonic()
while time.monotonic() - st < 5:
while time.monotonic() - st < 30:
for (fd, event) in poll.poll(10):
if fd == signal_read_fd:
signals = []