diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-11-08 09:33:37 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-11-08 09:33:37 +0000 |
commit | aaa75bdcdf782ef7332dba20fc4eb43517e6453c (patch) | |
tree | aff28e5c983206329a26c9b9c8556f90c379c036 | |
parent | f4005d5efc608e7d75371f0d0527041facd33f89 (diff) | |
download | unicorn-aaa75bdcdf782ef7332dba20fc4eb43517e6453c.tar.gz |
We shouldn't leave processes running after the test.
-rw-r--r-- | t/t0300-no-default-middleware.sh | 7 |
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 |