]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntpd-tls.t
tests: replace mime_from_path with mime_load
[public-inbox.git] / t / nntpd-tls.t
index a0522e1f64d9da0ef916d90d899d3b50a177c1cf..0ad29be0b82ea4c3e4826c83001533a7d527b271 100644 (file)
@@ -63,9 +63,7 @@ EOF
 
 {
        my $im = $ibx->importer(0);
-       my $eml = 't/data/0001.patch';
-       my $mime = PublicInbox::InboxWritable::mime_from_path($eml) or
-               die "open $eml: $!";
+       my $mime = mime_load 't/data/0001.patch';
        ok($im->add($mime), 'message added');
        $im->done;
        if ($version == 1) {