diff options
author | Eric Wong <e@yhbt.net> | 2020-04-21 21:16:12 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-22 18:22:40 +0000 |
commit | 62d1a4da996bd9a664be954f71f78fe052f9df16 (patch) | |
tree | 3fc45fcaccfc149b13fc6b7688017cb176852f25 /t/convert-compact.t | |
parent | 4bd22e9528484c5d964ecba277fd6a7d5e023461 (diff) | |
download | public-inbox-62d1a4da996bd9a664be954f71f78fe052f9df16.tar.gz |
t/*.t: use Email::MIME->create over PublicInbox::MIME->create
PublicInbox::MIME only supports ->new, and is only different from Email::MIME for old versions of Email::MIME. In the future, PublicInbox::MIME may not be a subclass of Email::MIME at all.
Diffstat (limited to 't/convert-compact.t')
-rw-r--r-- | t/convert-compact.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/convert-compact.t b/t/convert-compact.t index af16b701..376e0f6a 100644 --- a/t/convert-compact.t +++ b/t/convert-compact.t @@ -7,7 +7,7 @@ use PublicInbox::MIME; use PublicInbox::Spawn qw(which); use PublicInbox::TestCommon; require_git(2.6); -require_mods(qw(DBD::SQLite Search::Xapian)); +require_mods(qw(DBD::SQLite Search::Xapian Email::MIME)); which('xapian-compact') or plan skip_all => 'xapian-compact missing for '.__FILE__; @@ -26,7 +26,7 @@ ok(PublicInbox::Import::run_die([qw(git) , "--git-dir=$ibx->{inboxdir}", qw(config core.sharedRepository 0644)]), 'set sharedRepository'); $ibx = PublicInbox::Inbox->new($ibx); my $im = PublicInbox::Import->new($ibx->git, undef, undef, $ibx); -my $mime = PublicInbox::MIME->create( +my $mime = Email::MIME->create( header => [ From => 'a@example.com', To => 'test@example.com', |