X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhtml_index.t;h=80f81577e2aee2d875a772678e26b665bc8ae877;hb=de9648ca847cf032aab6da9cac1217bf9cca9c90;hp=2f4b4d1b71747b2b42227677f46dc1f072c540aa;hpb=3c39f9c942a6975245fda878e9b957d8d3367662;p=public-inbox.git
diff --git a/t/html_index.t b/t/html_index.t
index 2f4b4d1b..80f81577 100644
--- a/t/html_index.t
+++ b/t/html_index.t
@@ -1,15 +1,15 @@
-# Copyright (C) 2014-2019 all contributors
+# Copyright (C) 2014-2020 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
use Test::More;
-use Email::MIME;
+use PublicInbox::Eml;
use PublicInbox::Feed;
use PublicInbox::Git;
use PublicInbox::Import;
use PublicInbox::Inbox;
-use File::Temp qw/tempdir/;
-my $tmpdir = tempdir('pi-http-XXXXXX', TMPDIR => 1, CLEANUP => 1);
+use PublicInbox::TestCommon;
+my ($tmpdir, $for_destroy) = tmpdir();
my $git_dir = "$tmpdir/gittest";
my $ibx = PublicInbox::Inbox->new({
address => 'test@example',
@@ -22,7 +22,7 @@ my $im = PublicInbox::Import->new($git, 'tester', 'test@example');
# setup
{
- is(0, system(qw(git init -q --bare), $git_dir), "git init");
+ $im->init_bare;
my $prev = "";
foreach my $i (1..6) {
@@ -32,7 +32,7 @@ my $im = PublicInbox::Import->new($git, 'tester', 'test@example');
$mid_line .= "In-Reply-To: $prev";
}
$prev = $mid;
- my $mime = Email::MIME->new(<new(<
To: U
$mid_line