X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhtml_index.t;h=80f81577e2aee2d875a772678e26b665bc8ae877;hb=352956bcf1933bdaeba631deb4ade7dc7fd754b1;hp=51ea9a25fb4ed6bb876154b80b416ea43d55a33f;hpb=ad6f26f3b9f0e428020d05667987556f8fcbec2f;p=public-inbox.git
diff --git a/t/html_index.t b/t/html_index.t
index 51ea9a25..80f81577 100644
--- a/t/html_index.t
+++ b/t/html_index.t
@@ -1,14 +1,14 @@
-# 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;
-require './t/common.perl';
+use PublicInbox::TestCommon;
my ($tmpdir, $for_destroy) = tmpdir();
my $git_dir = "$tmpdir/gittest";
my $ibx = PublicInbox::Inbox->new({
@@ -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