Dont test against the bit of the error message that gets localized
[catagits/Test-WWW-Mechanize-Catalyst.git] / t / multi_content_type.t
index af30861..71ac228 100644 (file)
@@ -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;
   }
 }