From: Eric Wong Date: Fri, 8 Nov 2013 09:33:37 +0000 (+0000) Subject: t0300: kill off stray processes in test X-Git-Tag: v4.8.0.pre1~4 X-Git-Url: https://repo.or.cz/w/unicorn.git/commitdiff_plain/aaa75bdcdf782ef7332dba20fc4eb43517e6453c t0300: kill off stray processes in test We shouldn't leave processes running after the test. --- diff --git a/t/t0300-no-default-middleware.sh b/t/t0300-no-default-middleware.sh index c017c168..779dc026 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