tests: More timeout

This commit is contained in:
Fabian Boehm 2024-04-25 21:36:31 +02:00
parent 9954074dde
commit ac8b1db899
2 changed files with 6 additions and 7 deletions

View File

@ -4,12 +4,12 @@
isolated-tmux-start
isolated-tmux send-keys \
"sleep 0.25 &" Enter \
"sleep 0.5 &" Enter \
"echo hello"
sleep .5
sleep 1
isolated-tmux send-keys Space world
isolated-tmux capture-pane -p
# CHECK: prompt 0> sleep 0.25 &
# CHECK: prompt 0> sleep 0.5 &
# CHECK: prompt 0> echo hello
# CHECK: fish: Job 1, 'sleep 0.25 &' has ended
# CHECK: fish: Job 1, 'sleep 0.5 &' has ended
# CHECK: prompt 0> echo hello world

View File

@ -47,10 +47,9 @@ expect_prompt()
sendline("function postexec --on-event fish_postexec; echo fish_postexec spotted; end")
expect_prompt()
sendline("read")
sleep(0.200)
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$")
expect_re(r"\r\n?read> (\x1b\[\?1004h)?$", timeout=10)
os.kill(sp.spawn.pid, signal.SIGINT)
expect_str("fish_postexec spotted")
expect_str("fish_postexec spotted", timeout=10)
expect_prompt()
# Verify that the fish_kill_signal is set.