X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fpsgi_v2.t;h=9c19b0413dd1f0c20b61e58ea21c751006b88c9f;hb=e39585ee2bdcbeaab7b6bd33b3568021042d0879;hp=57017de1afc4e941caa459af9278c758437086a3;hpb=4bebfa0c80ad7f4596a7dca98b39121470a42af0;p=public-inbox.git diff --git a/t/psgi_v2.t b/t/psgi_v2.t index 57017de1..9c19b041 100644 --- a/t/psgi_v2.t +++ b/t/psgi_v2.t @@ -225,25 +225,7 @@ test_psgi(sub { $www->call(@_) }, sub { # ensure conflicted attachments can be resolved foreach my $body (qw(old new)) { - my $parts = [ - PublicInbox::MIME->create( - attributes => { content_type => 'text/plain' }, - body => 'blah', - ), - PublicInbox::MIME->create( - attributes => { - filename => 'attach.txt', - content_type => 'text/plain', - }, - body => $body - ) - ]; - $mime = PublicInbox::MIME->create( - parts => $parts, - header_str => [ From => 'root@z', - 'Message-ID' => '', - Subject => 'hi'] - ); + $mime = mime_load "t/psgi_v2-$body.eml"; ok($im->add($mime), "added attachment $body"); } $im->done;