about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-04-03 05:06:59 +0000
committerEric Wong <e@yhbt.net>2020-04-03 21:44:46 +0000
commitfc92ce8845ac5f09939722537624fa48441f7c0b (patch)
tree55f713c722e1b9dcea20a28a3cde98ef8dbb3c34 /t
parent150acb76fe824283ee41dcccc263eb38195d7ebd (diff)
downloadpublic-inbox-fc92ce8845ac5f09939722537624fa48441f7c0b.tar.gz
There may be no topics for a given timestamp range,
so don't attempt to treat `undef' as an arrayref.
Diffstat (limited to 't')
-rw-r--r--t/psgi_v2.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/psgi_v2.t b/t/psgi_v2.t
index 2c9387a4..c4f80869 100644
--- a/t/psgi_v2.t
+++ b/t/psgi_v2.t
@@ -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();