about summary refs log tree commit homepage
path: root/t/indexlevels-mirror.t
diff options
context:
space:
mode:
Diffstat (limited to 't/indexlevels-mirror.t')
-rw-r--r--t/indexlevels-mirror.t21
1 files changed, 10 insertions, 11 deletions
diff --git a/t/indexlevels-mirror.t b/t/indexlevels-mirror.t
index 90506e28..dcd5dc39 100644
--- a/t/indexlevels-mirror.t
+++ b/t/indexlevels-mirror.t
@@ -10,17 +10,16 @@ require PublicInbox::Admin;
 use PublicInbox::TestCommon;
 my $PI_TEST_VERSION = $ENV{PI_TEST_VERSION} || 2;
 require_git('2.6') if $PI_TEST_VERSION == 2;
-require_mods(qw(DBD::SQLite Email::MIME));
-
-my $mime = Email::MIME->create(
-        header => [
-                From => 'a@example.com',
-                To => 'test@example.com',
-                Subject => 'this is a subject',
-                Date => 'Fri, 02 Oct 1993 00:00:00 +0000',
-        ],
-        body => "hello world\n",
-);
+require_mods(qw(DBD::SQLite));
+
+my $mime = PublicInbox::MIME->new(<<'EOF');
+From: a@example.com
+To: test@example.com
+Subject: this is a subject
+Date: Fri, 02 Oct 1993 00:00:00 +0000
+
+hello world
+EOF
 
 sub import_index_incremental {
         my ($v, $level, $mime) = @_;