X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fpsgi_v2.t;h=5d212ca6f7ca1bb126bef8f92d02123f01789891;hp=bc26a1129364b0543c1e2995c170405a36d53755;hb=5d8dbb4aca5afcc6b98a4d951f03003fb7eaf356;hpb=58852a50f6a72265cce1e4729aae3875bba5aa96 diff --git a/t/psgi_v2.t b/t/psgi_v2.t index bc26a112..5d212ca6 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -225,6 +225,7 @@ test_psgi(sub { $www->call(@_) }, sub { # ensure conflicted attachments can be resolved foreach my $body (qw(old new)) { + $mime = mime_load "t/psgi_v2-$body.eml", sub { my $parts = [ Email::MIME->create( attributes => { content_type => 'text/plain' }, @@ -238,12 +239,12 @@ test_psgi(sub { $www->call(@_) }, sub { body => $body ) ]; - $mime = Email::MIME->create( + Email::MIME->create( parts => $parts, header_str => [ From => 'root@z', 'Message-ID' => '', Subject => 'hi'] - ); + )}; # mime_load sub ok($im->add($mime), "added attachment $body"); } $im->done;