mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-04-01 09:25:13 +08:00
tests: Shorten a sleep
This waited for a full second just to call `wait`. Instead let's use 300ms, saving a full 700ms per test run.
This commit is contained in:
parent
91b2edd51d
commit
3fcf4e1b20
@ -13,10 +13,10 @@ send, sendline, sleep, expect_prompt, expect_re, expect_str = (
|
||||
expect_prompt()
|
||||
|
||||
# one background job
|
||||
sendline("sleep 1 &")
|
||||
sendline("sleep .3 &")
|
||||
expect_prompt()
|
||||
sendline("wait")
|
||||
expect_prompt("Job 1, 'sleep 1 &' has ended")
|
||||
expect_prompt("Job 1, 'sleep .3 &' has ended")
|
||||
sendline("jobs")
|
||||
expect_prompt("jobs: There are no jobs")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user