about summary refs log tree commit homepage
path: root/t/search-thr-index.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/search-thr-index.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/search-thr-index.t')
-rw-r--r--t/search-thr-index.t4
1 files changed, 3 insertions, 1 deletions
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]