From: Ash Berlin Date: Wed, 18 Feb 2009 09:40:14 +0000 (+0000) Subject: Dont test against the bit of the error message that gets localized X-Git-Tag: 0.51~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FTest-WWW-Mechanize-Catalyst.git;a=commitdiff_plain;h=025eaf4a0fd262799c7940e5b65ab58b22435121;hp=532f2706dbbcfe61274fb9513e19fbd5d6d18e34 Dont test against the bit of the error message that gets localized --- diff --git a/t/multi_content_type.t b/t/multi_content_type.t index af30861..71ac228 100644 --- a/t/multi_content_type.t +++ b/t/multi_content_type.t @@ -36,7 +36,7 @@ my $skip = 0; TRY_CONNECT: { eval { $m->get('/') }; - if ($@ || $m->content =~ /\(connect: Connection refused\)/) { + if ($@ || $m->content =~ /Can't connect to localhost:$PORT/) { $skip = $@ || $m->content; } }