X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fmulti_content_type.t;h=f0bf615d141fb07512c374a10e435ec9e18be73b;hb=6435acdcab63d866a5eba6d434b356cadba89588;hp=4fb0a2546d27e197273033dbc3e7fc25c6681b89;hpb=127272a78225898ecf6932cb9245d1637b2c20e3;p=catagits%2FTest-WWW-Mechanize-Catalyst.git diff --git a/t/multi_content_type.t b/t/multi_content_type.t index 4fb0a25..f0bf615 100644 --- a/t/multi_content_type.t +++ b/t/multi_content_type.t @@ -7,7 +7,6 @@ my $PORT; BEGIN { $PORT = $ENV{TWMC_TEST_PORT} || 7357; - $ENV{CATALYST_SERVER} ||= "http://localhost:$PORT"; } use Test::More tests => 9; @@ -27,7 +26,9 @@ BEGIN { $SIG{INT} = sub { warn "INT:$$"; exit }; use_ok 'ExternalCatty'; -my $pid = ExternalCatty->background($PORT); +my $pid; +($pid, $PORT) = ExternalCatty->background($PORT); +$ENV{CATALYST_SERVER} ||= "http://localhost:$PORT"; use Test::WWW::Mechanize::Catalyst; my $m = Test::WWW::Mechanize::Catalyst->new;