From 585314673236d664729fe3ab2d4fb229d1c0f2d5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Fri, 14 Jun 2019 17:01:55 +0000 Subject: searchidx: require PublicInbox::Inbox (or InboxWritable) ref PublicInbox::Inbox objects have minimal dependencies, so drop code to support old tests which existed before the PublicInbox::Inbox object came into existence. --- t/psgi_search.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/psgi_search.t') 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'; -- cgit v1.2.3-24-ge0c7