diff --git a/tests/jobs.in b/tests/jobs.in index 76192b1b4..7be84be4b 100644 --- a/tests/jobs.in +++ b/tests/jobs.in @@ -14,9 +14,10 @@ disown foo disown (jobs -p) or exit 0 +# Verify `jobs` output within a function lists background jobs # https://github.com/fish-shell/fish-shell/issues/5824 function foo - sleep 1 & - jobs -c + sleep 0.2 & + jobs -c end foo