]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/import.t
t/*.t: use Email::MIME->create over PublicInbox::MIME->create
[public-inbox.git] / t / import.t
index 703aa36286a2726fef33e3ecaada88b0b59c2139..53345b12fb5b6ee54ec0b957028b3c7d9a54fc18 100644 (file)
@@ -10,13 +10,13 @@ use PublicInbox::Spawn qw(spawn);
 use Fcntl qw(:DEFAULT SEEK_SET);
 use File::Temp qw/tempfile/;
 use PublicInbox::TestCommon;
+require_mods(qw(Email::MIME));
 my ($dir, $for_destroy) = tmpdir();
 
-is(system(qw(git init -q --bare), $dir), 0, 'git init successful');
 my $git = PublicInbox::Git->new($dir);
-
 my $im = PublicInbox::Import->new($git, 'testbox', 'test@example');
-my $mime = PublicInbox::MIME->create(
+$im->init_bare;
+my $mime = Email::MIME->create(
        header => [
                From => 'a@example.com',
                To => 'b@example.com',