X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fmulti-mid.t;h=e9c3dd8c26ae5ad86a993182e3b3314e4aea74ec;hb=af0b0fb7a454470a32c452119d0392e0dedb3fe1;hp=5afb96933209d3e5f7e306f073a4764e9ba26f4a;hpb=6e07def560b211d9a1a3221862e72b7aeb4a31b3;p=public-inbox.git diff --git a/t/multi-mid.t b/t/multi-mid.t index 5afb9693..e9c3dd8c 100644 --- a/t/multi-mid.t +++ b/t/multi-mid.t @@ -1,8 +1,8 @@ -# Copyright (C) 2020 all contributors +# Copyright (C) 2020-2021 all contributors # License: AGPL-3.0+ 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(<new(< Message-ID: From: a\@example.com @@ -20,7 +20,7 @@ Subject: bad EOF -my $good = PublicInbox::MIME->new(<new(< 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;