about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/solver_git.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/solver_git.t b/t/solver_git.t
index af5bf7bc..0c272d77 100644
--- a/t/solver_git.t
+++ b/t/solver_git.t
@@ -157,6 +157,7 @@ EOF
         close $cfgfh or die;
         my $cfg = PublicInbox::Config->new($cfgpath);
         my $www = PublicInbox::WWW->new($cfg);
+        my $non_existent = 'ee5e32211bf62ab6531bdf39b84b6920d0b6775a';
         my $client = sub {
                 my ($cb) = @_;
                 my $res = $cb->(GET("/$name/3435775/s/"));
@@ -165,6 +166,9 @@ EOF
                 $res = $cb->(GET("/$name/".('0'x40).'/s/'));
                 is($res->code, 404, 'failure with null OID');
 
+                $res = $cb->(GET("/$name/$non_existent/s/"));
+                is($res->code, 404, 'failure with null OID');
+
                 $res = $cb->(GET("/$name/$v1_0_0_tag/s/"));
                 is($res->code, 200, 'shows commit');
                 while (my ($label, $size) = each %bin) {