X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fmime.t;h=471f0efa99533fa3a58697e482f5eb0fdc739bc3;hb=3596019278ef489f27e0659c752977f60f847903;hp=d17ec58e92dcbb42493f1d89e1291ada984c67cf;hpb=0283273a14e1871955f6a9132f4f3f7884ec8a3f;p=public-inbox.git
diff --git a/t/mime.t b/t/mime.t
index d17ec58e..471f0efa 100644
--- a/t/mime.t
+++ b/t/mime.t
@@ -1,5 +1,5 @@
#!perl -w
-# Copyright (C) 2017-2020 all contributors
+# Copyright (C) 2017-2021 all contributors
# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself.
# Artistic or GPL-1+
@@ -16,7 +16,7 @@ use_ok $_ for @classes;
local $SIG{__WARN__} = sub {}; # needed for old Email::Simple (used by E::M)
for my $cls (@classes) {
- my $msg = PublicInbox::MIME->new(<<'EOF');
+ my $msg = $cls->new(<<'EOF');
From: Richard Hansen
To: git@vger.kernel.org
Cc: Richard Hansen
@@ -49,7 +49,7 @@ dkTlB69771K2eXK4LcHSH/2LqX+VYa3K44vrx1ruzjXdNWzIpKBy0weFNiwnJCGofvCysM2RCSI1
EOF
- my @parts = $msg->parts;
+ my @parts = $msg->subparts;
my $exp = <