]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/search.t
tests: replace mime_from_path with mime_load
[public-inbox.git] / t / search.t
index 40264345985477bc0609381d5dbdd4c606c317ac..83986837eaf9190e8c98aa21115dfeb2db19c38a 100644 (file)
@@ -286,9 +286,7 @@ EOF
 });
 
 $ibx->with_umask(sub {
-       my $eml = 't/utf8.eml';
-       my $mime = PublicInbox::InboxWritable::mime_from_path($eml) or
-               die "open $eml: $!";
+       my $mime = mime_load 't/utf8.eml';
        my $doc_id = $rw->add_message($mime);
        ok($doc_id > 0, 'message indexed doc_id with UTF-8');
        my $msg = $rw->query('m:testmessage@example.com', {limit => 1})->[0];