From: Mark Ellis Date: Sat, 2 Nov 2013 16:54:24 +0000 (+0000) Subject: Fixed failing tests where you Starman is installed but Net::Server::PreFork isn't X-Git-Tag: 5.90050~1^2~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=567fc75709363d881b6a5e1b5c26508c5b3432fc Fixed failing tests where you Starman is installed but Net::Server::PreFork isn't --- diff --git a/t/aggregate/unit_core_script_server.t b/t/aggregate/unit_core_script_server.t index 7121db4..64daee5 100644 --- a/t/aggregate/unit_core_script_server.t +++ b/t/aggregate/unit_core_script_server.t @@ -40,7 +40,7 @@ testOption( [ qw/--port 3001/ ], ['3001', undef, opthash(port => 3001)] ); testOption( [ qw// ], [5000, undef, opthash(port => 5000)] ); } -if (try { require Starman; 1; }) { +if (try { require Starman::Server; 1; }) { # fork -f -fork --fork -f --fork testOption( [ qw/--fork/ ], ['3000', undef, opthash(fork => 1)] ); testOption( [ qw/-f/ ], ['3000', undef, opthash(fork => 1)] ); @@ -52,7 +52,7 @@ if (try { require MooseX::Daemonize; 1; }) { testOption( [ qw/--pid cat.pid/ ], ['3000', undef, opthash(pidfile => "cat.pid")] ); } -if (try { require Starman; 1; }) { +if (try { require Starman::Server; 1; }) { # keepalive -k -keepalive --keepalive -k --keepalive testOption( [ qw/-k/ ], ['3000', undef, opthash(keepalive => 1)] ); testOption( [ qw/--keepalive/ ], ['3000', undef, opthash(keepalive => 1)] );