]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_search.t
mbox: do not barf on queries which return no results
[public-inbox.git] / t / psgi_search.t
index 84b3daa3402ac071b4562addc70ef3e6e547e71d..cf5a7e91b04de15ec9e77d82ac4824a8d03c57a4 100644 (file)
@@ -70,6 +70,10 @@ test_psgi(sub { $www->call(@_) }, sub {
        $res = $cb->(GET('/test/?q=s:test&l=5e'));
        is($res->code, 200, 'successful search result');
        is_deeply([], $warn, 'no warnings from non-numeric comparison');
+
+       $res = $cb->(POST('/test/?q=s:bogus&x=m'));
+       is($res->code, 404, 'failed search result gives 404');
+       is_deeply([], $warn, 'no warnings');
 });
 
 done_testing();