Dont test against the bit of the error message that gets localized
Ash Berlin [Wed, 18 Feb 2009 09:40:14 +0000 (09:40 +0000)]
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;
   }
 }