]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/msgtime.t
t/*.t: use Email::MIME->create over PublicInbox::MIME->create
[public-inbox.git] / t / msgtime.t
index 3f09fb4ef76ee0a915add8942136f0860c59ad2d..058f38864b9934061360ab717f347725f2e79538 100644 (file)
@@ -6,12 +6,13 @@ use Test::More;
 use PublicInbox::MIME;
 use PublicInbox::MsgTime;
 use PublicInbox::TestCommon;
+require_mods(qw(Email::MIME));
 
 our $received_date = 'Mon, 22 Jan 2007 13:16:24 -0500';
 sub datestamp ($) {
        my ($date) = @_;
        local $SIG{__WARN__} = sub {};  # Suppress warnings
-       my $mime = PublicInbox::MIME->create(
+       my $mime = Email::MIME->create(
                header => [
                        From => 'a@example.com',
                        To => 'b@example.com',
@@ -34,7 +35,7 @@ EOF
 sub timestamp ($) {
        my ($received) = @_;
        local $SIG{__WARN__} = sub {};  # Suppress warnings
-       my $mime = PublicInbox::MIME->create(
+       my $mime = Email::MIME->create(
                header => [
                        From => 'a@example.com',
                        To => 'b@example.com',