about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-11-08 09:33:37 +0000
committerEric Wong <normalperson@yhbt.net>2013-11-08 09:33:37 +0000
commitaaa75bdcdf782ef7332dba20fc4eb43517e6453c (patch)
treeaff28e5c983206329a26c9b9c8556f90c379c036
parentf4005d5efc608e7d75371f0d0527041facd33f89 (diff)
downloadunicorn-aaa75bdcdf782ef7332dba20fc4eb43517e6453c.tar.gz
We shouldn't leave processes running after the test.
-rw-r--r--t/t0300-no-default-middleware.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/t0300-no-default-middleware.sh b/t/t0300-no-default-middleware.sh
index c017c16..779dc02 100644
--- a/t/t0300-no-default-middleware.sh
+++ b/t/t0300-no-default-middleware.sh
@@ -1,6 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
-t_plan 2 "test the -N / --no-default-middleware option"
+t_plan 3 "test the -N / --no-default-middleware option"
 
 t_begin "setup and start" && {
         unicorn_setup
@@ -12,4 +12,9 @@ t_begin "check exit status with Rack::Lint not present" && {
         test 42 -eq "$(curl -sf -o/dev/null -w'%{http_code}' http://$listen/)"
 }
 
+t_begin "killing succeeds" && {
+        kill $unicorn_pid
+        check_stderr
+}
+
 t_done