]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
www: avoid warnings on YYYYMMDD-only t= query parameter
[public-inbox.git] / t / psgi_v2.t
index 4ab9601c0f91985dfcd20f6876dd13ce17910dc1..11aef5b3380c9c860e50161ae6e83fa83f27af6a 100644 (file)
@@ -296,6 +296,9 @@ my $client3 = sub {
        }
        $res = $cb->(GET('/v2test/?t=1970'.'01'.'01'.'000000'));
        is($res->code, 404, '404 for out-of-range t= param');
+       @warn = ();
+       $res = $cb->(GET('/v2test/?t=1970'.'01'.'01'));
+       is_deeply(\@warn, [], 'no warnings on YYYYMMDD only');
 };
 test_psgi(sub { $www->call(@_) }, $client3);
 $run_httpd->($client3, 4);