X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fmsg_iter.t;h=5c57e043d05f3f9fbf1777e83646d2df7a519656;hp=6adbf165b0713268cfb87bf73c9b7b9d7c45d1a9;hb=aa454143b1f26ffdf5f32f17c2032473d70eceae;hpb=e39585ee2bdcbeaab7b6bd33b3568021042d0879 diff --git a/t/msg_iter.t b/t/msg_iter.t index 6adbf165..5c57e043 100644 --- a/t/msg_iter.t +++ b/t/msg_iter.t @@ -5,7 +5,6 @@ use warnings; use Test::More; use PublicInbox::TestCommon; use PublicInbox::Hval qw(ascii_html); -use PublicInbox::InboxWritable; use_ok('PublicInbox::MsgIter'); { @@ -34,9 +33,7 @@ use_ok('PublicInbox::MsgIter'); } { - my $f = 't/iso-2202-jp.eml'; - my $mime = PublicInbox::InboxWritable::mime_from_path($f) or - die "open $f: $!"; + my $mime = mime_load 't/iso-2202-jp.eml'; my $raw = ''; msg_iter($mime, sub { my ($part, $level, @ex) = @{$_[0]}; @@ -49,9 +46,7 @@ use_ok('PublicInbox::MsgIter'); } { - my $f = 't/x-unknown-alpine.eml'; - my $mime = PublicInbox::InboxWritable::mime_from_path($f) or - die "open $f: $!"; + my $mime = mime_load 't/x-unknown-alpine.eml'; my $raw = ''; msg_iter($mime, sub { my ($part, $level, @ex) = @{$_[0]};