mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
tests/checks/disown.fish: improve test robustness
If the job never gets into stopped state, it will keep running forever. Narrow the wait condition, to prevent a timeout in failure scenarios.
This commit is contained in:
@@ -14,7 +14,7 @@ status job-control full
|
||||
sleep 1 &
|
||||
set -l pid (jobs -lp)
|
||||
kill -SIGSTOP $pid
|
||||
while not jobs | grep -q stopped
|
||||
while jobs -l | grep -q running
|
||||
sleep .01
|
||||
end
|
||||
disown
|
||||
|
||||
Reference in New Issue
Block a user