X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fmulti_content_type.t;h=47cba51a3eb758f95acdbd1cad2e0df51f3b2b1a;hb=4ab99758ded1e8345f86ad675880e44aca82dac5;hp=7cd92d3d958d21faef65e1077b64cc5b493b5195;hpb=dedbb26e790ded84fe40dfc159a30f4c7d17b578;p=catagits%2FTest-WWW-Mechanize-Catalyst.git diff --git a/t/multi_content_type.t b/t/multi_content_type.t index 7cd92d3..47cba51 100644 --- a/t/multi_content_type.t +++ b/t/multi_content_type.t @@ -9,7 +9,7 @@ BEGIN { $PORT = $ENV{TWMC_TEST_PORT} || 7357; } -use Test::More tests => 9; +use Test::More; use Test::Exception; BEGIN { @@ -33,6 +33,9 @@ $ENV{CATALYST_SERVER} ||= "http://localhost:$PORT"; use Test::WWW::Mechanize::Catalyst; my $m = Test::WWW::Mechanize::Catalyst->new; +# Yeah, sorry - wait for the forked process to spin up... +sleep 10; + my $skip = 0; TRY_CONNECT: { eval { $m->get('/') }; @@ -57,7 +60,7 @@ SKIP: { is($m->uri, "$ENV{CATALYST_SERVER}/"); $m->get_ok( '/host' ); - $m->content_contains('Host: localhost:$PORT') or diag $m->content; + $m->content_contains("Host: localhost:$PORT") or diag $m->content; } @@ -67,5 +70,7 @@ END { } } +done_testing; + 1;