summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests b/tests
index 17ce704..0e664ad 100755
--- a/tests
+++ b/tests
@@ -27,6 +27,7 @@ cd test.dir
 printf '# nq tests\n'
 check 'fails with no arguments' ! $NQ
 check 'succeeds enqueuing true' 'f=$($NQ true)'
+sleep 1
 check 'generated a lockfile' test -f $f
 check 'lockfile contains exec line' grep -q exec.*nq.*true $f
 check 'lockfile contains status line' grep -q exited.*status.*0 $f
@@ -96,6 +97,7 @@ check 'killing fourth job' kill ${f4##*.}
 sleep 1
 check 'fq tracks third job' '($FQ ,* & p=$!; sleep 1; kill $p) | sed 3q | grep -q sleep.*300'
 check 'killing third job' kill ${f3##*.}
+sleep 1
 check 'fq outputs last job when no job running' '$FQ ,* | sed 3q | grep -q sleep.*400'
 )