]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_v2.t
view: handle the topic-free case properly
[public-inbox.git] / t / psgi_v2.t
index 2c9387a496cb0d16b31019bf2297d12ecba3d834..c4f808695b000110d84d69605f5e6e42a2437d2e 100644 (file)
@@ -250,6 +250,8 @@ test_psgi(sub { $www->call(@_) }, sub {
                is($old->content, 'old', 'got expected old content');
                is($new->content, 'new', 'got expected new content');
        }
+       $res = $cb->(GET('/v2test/?t=1970'.'01'.'01'.'000000'));
+       is($res->code, 404, '404 for out-of-range t= param');
 });
 
 done_testing();