]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/indexlevels-mirror.t
replace most uses of PublicInbox::MIME with Eml
[public-inbox.git] / t / indexlevels-mirror.t
index f220030607b21242c0c0e0d6ce9f40fbd976b619..dcd5dc39128ec8f0f3884e1f458cd117062e13d2 100644 (file)
@@ -12,15 +12,14 @@ my $PI_TEST_VERSION = $ENV{PI_TEST_VERSION} || 2;
 require_git('2.6') if $PI_TEST_VERSION == 2;
 require_mods(qw(DBD::SQLite));
 
-my $mime = PublicInbox::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",
-);
+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) = @_;