X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fpsgi_search.t;h=07fb48466bf788b060f02fd9f25614347e36c2d7;hp=c1677eb33bf8a101de2e40aedf8768cf8475fbbf;hb=0d38f65c490466837ae091afa7a7b6f59d04ce7c;hpb=416d1c3f6d5e5a857760ffc1b679e86a070bdbd4 diff --git a/t/psgi_search.t b/t/psgi_search.t index c1677eb3..07fb4846 100644 --- a/t/psgi_search.t +++ b/t/psgi_search.t @@ -67,11 +67,11 @@ $im->done; PublicInbox::SearchIdx->new($ibx, 1)->index_sync; my $cfgpfx = "publicinbox.test"; -my $config = PublicInbox::Config->new(\<new(\<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,