Move sleep till after kill in test
[pazpar2-moved-to-github.git] / test / run_pazpar2.sh
index e306b37..33cc784 100755 (executable)
@@ -117,11 +117,11 @@ for f in `cat ${srcdir}/${URLS}`; do
 done
 IFS="$oIFS"
 
-sleep 1
 # Kill programs
 
 if test -n "$PP2PID"; then
     kill $PP2PID
+    sleep 1
 fi
 
 exit $code