Increase job summary timeout more in one call

This commit is contained in:
Fabian Homborg 2020-08-08 15:50:02 +02:00
parent 46faf0869c
commit 7c0ecf0d37

View file

@ -23,7 +23,7 @@ expect_prompt()
# fish_job_summary is called when background job ends.
sendline("sleep 0.5 &")
expect_prompt()
expect_re("[0-9]+:0:sleep 0.5 &:ENDED")
expect_re("[0-9]+:0:sleep 0.5 &:ENDED", timeout=20)
sendline("")
expect_prompt()
@ -32,7 +32,7 @@ expect_prompt()
sendline("false; sleep 10 &; true")
expect_prompt()
sendline("kill -TERM $last_pid")
expect_re("[0-9]+:0:sleep 10 &:SIGTERM:Polite quit request")
expect_re("[0-9]+:0:sleep 10 &:SIGTERM:Polite quit request", timeout=20)
sendline("")
expect_prompt()
@ -41,4 +41,4 @@ expect_prompt()
sendline("true | sleep 6")
sleep(0.100)
call(["pkill", "-KILL", "sleep", "-P", str(sp.spawn.pid)])
expect_re("[0-9]+:1:true|sleep 6:SIGKILL:Forced quit:[0-9]+:sleep")
expect_re("[0-9]+:1:true|sleep 6:SIGKILL:Forced quit:[0-9]+:sleep", timeout=20)