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=56b9dade0392c8f248464f5c149d79e11874e4df;hp=9e269c3882ca876028194386f47e21966e1d4989;hb=310c2a39c86dc3f8a1dd0bb80c2543e809e2cb3c;hpb=eae29f6e1e9569b309d7e10cfda3b4fce4ce202d diff --git a/t/psgi-log.t b/t/psgi-log.t index 9e269c3..56b9dad 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"); }; }; @@ -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"); }; };