do not run tests that fail when debug mode is active
[catagits/Catalyst-Runtime.git] / t / undef-params.t
index a6d7594..d592606 100644 (file)
@@ -33,7 +33,8 @@ use Plack::Test;
 
   $SIG{__WARN__} = sub {
     my $error = shift;
-    Test::More::is($error, "You called ->params with an undefined value at t/undef-params.t line 20.\n");
+    Test::More::is($error, "You called ->params with an undefined value at t/undef-params.t line 20.\n")
+      unless MyApp->debug;
   };
 
   MyApp->setup, 'setup app';