From: Andy Grundman Date: Tue, 18 Oct 2005 16:18:34 +0000 (+0000) Subject: Fixed Apache tests so they don't prompt for config information X-Git-Tag: 5.7099_04~1197 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=dd3af04e6dadbbf97e83d8ad219556c6bfd774fc;hp=58f5682a9e1df884fc01ec9e180d225506fc60ff Fixed Apache tests so they don't prompt for config information --- diff --git a/t/optional/apache-cgi.pl b/t/optional/apache-cgi.pl index 3c0a4de..0eac65c 100755 --- a/t/optional/apache-cgi.pl +++ b/t/optional/apache-cgi.pl @@ -30,8 +30,7 @@ File::Copy::Recursive::dircopy( 't/live/lib', 't/var/TestApp/lib' ); # remove TestApp's tests so Apache::Test doesn't try to run them rmtree 't/var/TestApp/t'; -my $cfg = Apache::Test::config(); -$ENV{CATALYST_SERVER} = 'http://' . $cfg->hostport . '/cgi'; +$ENV{CATALYST_SERVER} = 'http://localhost:8529/cgi'; Apache::TestRun->new->run(@ARGV); diff --git a/t/optional/apache-fastcgi.pl b/t/optional/apache-fastcgi.pl index 213293b..a4c2a52 100755 --- a/t/optional/apache-fastcgi.pl +++ b/t/optional/apache-fastcgi.pl @@ -30,8 +30,7 @@ File::Copy::Recursive::dircopy( 't/live/lib', 't/var/TestApp/lib' ); # remove TestApp's tests so Apache::Test doesn't try to run them rmtree 't/var/TestApp/t'; -my $cfg = Apache::Test::config(); -$ENV{CATALYST_SERVER} = 'http://' . $cfg->hostport . '/fastcgi'; +$ENV{CATALYST_SERVER} = 'http://localhost:8529/fastcgi'; Apache::TestRun->new->run(@ARGV);