From 0d38f65c490466837ae091afa7a7b6f59d04ce7c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 8 Dec 2020 21:21:27 +0000 Subject: rename {pi_config} fields to {pi_cfg} {pi_config} may be confused with the documented `PI_CONFIG' environment variable, and we'll favor vowel-removal to be consistent with our usage of object references. The `pi_' prefix may stay in some places, for now; since a separate namespace may come into this codebase for local/private client-tooling. For InboxIdle, we'll also remove an invalid comment about holding a reference to the PublicInbox::Config object, too. --- t/psgi_search.t | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 't/psgi_search.t') 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, -- cgit v1.2.3-24-ge0c7