X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=t%2Fpsgi-log.t;h=91a36dcd6d7deab93e331db31da713dbf175e631;hp=9e269c3882ca876028194386f47e21966e1d4989;hb=cc7738c0fb5c4b5dc601734e7b525391d81d6639;hpb=c13f6e7ecb789a860ee01f163a5e4b66a4854186 diff --git a/t/psgi-log.t b/t/psgi-log.t index 9e269c3..91a36dc 100644 --- a/t/psgi-log.t +++ b/t/psgi-log.t @@ -69,10 +69,10 @@ my $cmp = TestApp->debug ? '>=' : '=='; test_psgi $app, sub { my $cb = shift; - my $res = $cb->(GET "/log/debug"); + my $res = $cb->(GET "/log/info"); my @logs = $handle->logs; cmp_ok(scalar(@logs), $cmp, 1, "psgi.errors: one event output"); - like($logs[0], qr/debug$/m, "psgi.errors: event matches test data"); + like($logs[0], qr/info$/m, "psgi.errors: event matches test data") unless TestApp->debug; }; }; @@ -97,9 +97,9 @@ my $cmp = TestApp->debug ? '>=' : '=='; test_psgi $app, sub { my $cb = shift; - my $res = $cb->(GET "/log/debug"); + my $res = $cb->(GET "/log/info"); cmp_ok(scalar(@logs), $cmp, 1, "psgix.logger: one event logged"); - is(scalar(grep { $_->{level} eq 'debug' and $_->{message} eq 'debug' } @logs), + is(scalar(grep { $_->{level} eq 'info' and $_->{message} eq 'info' } @logs), 1, "psgix.logger: right stuff"); }; };