From aaa75bdcdf782ef7332dba20fc4eb43517e6453c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 8 Nov 2013 09:33:37 +0000 Subject: t0300: kill off stray processes in test We shouldn't leave processes running after the test. --- t/t0300-no-default-middleware.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7