about summary refs log tree commit homepage
path: root/t/psgi_search.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-14 17:01:55 +0000
committerEric Wong <e@80x24.org>2019-06-14 17:27:06 +0000
commit585314673236d664729fe3ab2d4fb229d1c0f2d5 (patch)
tree8e5c0c5b56a662a85dbc0022b20c3272c1a2c34b /t/psgi_search.t
parentf70abe08b768bb0d5537ef2c3f9091069046d9a2 (diff)
downloadpublic-inbox-585314673236d664729fe3ab2d4fb229d1c0f2d5.tar.gz
PublicInbox::Inbox objects have minimal dependencies, so
drop code to support old tests which existed before the
PublicInbox::Inbox object came into existence.
Diffstat (limited to 't/psgi_search.t')
-rw-r--r--t/psgi_search.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/psgi_search.t b/t/psgi_search.t
index a6507676..bbf5a96a 100644
--- a/t/psgi_search.t
+++ b/t/psgi_search.t
@@ -6,6 +6,7 @@ use Test::More;
 use File::Temp qw/tempdir/;
 use Email::MIME;
 use PublicInbox::Config;
+use PublicInbox::Inbox;
 use PublicInbox::WWW;
 use bytes (); # only for bytes::length
 my @mods = qw(DBD::SQLite Search::Xapian HTTP::Request::Common Plack::Test
@@ -19,7 +20,8 @@ my $tmpdir = tempdir('pi-psgi-search.XXXXXX', TMPDIR => 1, CLEANUP => 1);
 my $git_dir = "$tmpdir/a.git";
 
 is(0, system(qw(git init -q --bare), $git_dir), "git init (main)");
-my $rw = PublicInbox::SearchIdx->new($git_dir, 1);
+my $ibx = PublicInbox::Inbox->new({mainrepo => $git_dir});
+my $rw = PublicInbox::SearchIdx->new($ibx, 1);
 ok($rw, "search indexer created");
 my $digits = '10010260936330';
 my $ua = 'Pine.LNX.4.10';