]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/psgi_search.t
update copyrights for 2021
[public-inbox.git] / t / psgi_search.t
index c1677eb33bf8a101de2e40aedf8768cf8475fbbf..8ba431bcae7c92c90f6ab14fbc8d34558f7cffa7 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright (C) 2017-2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2017-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use warnings;
@@ -67,11 +67,11 @@ $im->done;
 PublicInbox::SearchIdx->new($ibx, 1)->index_sync;
 
 my $cfgpfx = "publicinbox.test";
-my $config = PublicInbox::Config->new(\<<EOF);
+my $cfg = PublicInbox::Config->new(\<<EOF);
 $cfgpfx.address=git\@vger.kernel.org
 $cfgpfx.inboxdir=$tmpdir
 EOF
-my $www = PublicInbox::WWW->new($config);
+my $www = PublicInbox::WWW->new($cfg);
 test_psgi(sub { $www->call(@_) }, sub {
        my ($cb) = @_;
        my $res;
@@ -144,7 +144,7 @@ test_psgi(sub { $www->call(@_) }, sub {
                $xdb->set_metadata('has_threadid', '0');
                $sidx->idx_release;
        }
-       $config->each_inbox(sub { delete $_[0]->{search} });
+       $cfg->each_inbox(sub { delete $_[0]->{search} });
        $res = $cb->(GET('/test/?q=s:test'));
        is($res->code, 200, 'successful search w/o has_threadid');
        unlike($html, qr/download mbox\.gz: .*?"full threads"/s,