]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/multi-mid.t
imap: drop old, pre-Parse::RecDescent search parser
[public-inbox.git] / t / multi-mid.t
index 5afb96933209d3e5f7e306f073a4764e9ba26f4a..41d556b9ceb993ebb9276d01149ca2f8c5e65c55 100644 (file)
@@ -2,7 +2,7 @@
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use Test::More;
-use PublicInbox::MIME;
+use PublicInbox::Eml;
 use PublicInbox::TestCommon;
 use PublicInbox::InboxWritable;
 require_git(2.6);
@@ -11,7 +11,7 @@ require PublicInbox::SearchIdx;
 my $delay = $ENV{TEST_DELAY_CONVERT};
 
 my $addr = 'test@example.com';
-my $bad = PublicInbox::MIME->new(<<EOF);
+my $bad = PublicInbox::Eml->new(<<EOF);
 Message-ID: <a\@example.com>
 Message-ID: <b\@example.com>
 From: a\@example.com
@@ -20,7 +20,7 @@ Subject: bad
 
 EOF
 
-my $good = PublicInbox::MIME->new(<<EOF);
+my $good = PublicInbox::Eml->new(<<EOF);
 Message-ID: <b\@example.com>
 From: b\@example.com
 To: $addr
@@ -70,7 +70,7 @@ for my $order ([$bad, $good], [$good, $bad]) {
        $cmd = [ '-init', '-Lbasic', '-V2', 'v2c', "$tmpdir/v2-clone",
                'http://example.com/v2c', 'v2c@example.com' ];
        ok(run_script($cmd, $env), 'init clone');
-       $cmd = [ '-index', "$tmpdir/v2-clone" ];
+       $cmd = [ qw(-index -j0), "$tmpdir/v2-clone" ];
        sleep($delay) if $delay;
        ok(run_script($cmd, $env), 'index the clone');
        $ibx->cleanup;