From 20e84b261be1b7452d0e91b3c7d072413c8e5aea Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Jun 2010 18:39:31 -0700 Subject: t0303: extra test for multiple listeners We share the same array from the original bin/* down into the Configurator. --- t/t0303-rails3-alt-working_directory_config.ru.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/t/t0303-rails3-alt-working_directory_config.ru.sh b/t/t0303-rails3-alt-working_directory_config.ru.sh index f29dbe7..b6fe5e7 100755 --- a/t/t0303-rails3-alt-working_directory_config.ru.sh +++ b/t/t0303-rails3-alt-working_directory_config.ru.sh @@ -6,11 +6,12 @@ then fi . ./test-rails3.sh -t_plan 4 "Rails 3 (beta) inside alt working_directory (w/ config.ru)" +t_plan 5 "Rails 3 (beta) inside alt working_directory (w/ config.ru)" t_begin "setup and start" && { unicorn_setup - rtmpfiles unicorn_config_tmp + rtmpfiles unicorn_config_tmp usock + rm -f $usock rails3_app=$(cd rails3-app && pwd) rm -rf $t_pfx.app mkdir $t_pfx.app @@ -21,7 +22,7 @@ t_begin "setup and start" && { unicorn_setup rm $pid - echo "#\\--daemonize --host $host --port $port" \ + echo "#\\--daemonize --host $host --port $port -l $usock" \ >> $t_pfx.app/config.ru # we have --host/--port in config.ru instead @@ -46,6 +47,10 @@ t_begin "static file serving works" && { test x"$(curl -sSf http://$listen/x.txt)" = xHELLO } +t_begin "socket created" && { + test -S $usock +} + t_begin "killing succeeds" && { kill $unicorn_pid } -- cgit v1.2.3-24-ge0c7