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/search-thr-index.t | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 't/search-thr-index.t') diff --git a/t/search-thr-index.t b/t/search-thr-index.t index 1872af84..0f593c2a 100644 --- a/t/search-thr-index.t +++ b/t/search-thr-index.t @@ -13,11 +13,13 @@ foreach my $mod (@mods) { plan skip_all => "missing $mod for $0" if $@; } require PublicInbox::SearchIdx; +require PublicInbox::Inbox; my $tmpdir = tempdir('pi-search-thr-index.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 $data = <<'EOF'; Subject: [RFC 00/14] -- cgit v1.2.3-24-ge0c7