X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fnntpd-tls.t;h=23baf4e443bbfbad297b1675e41d140216a3028a;hb=d73d783ab2cf14ba28ca63723223d8c85a68cdd5;hp=a0522e1f64d9da0ef916d90d899d3b50a177c1cf;hpb=4bebfa0c80ad7f4596a7dca98b39121470a42af0;p=public-inbox.git diff --git a/t/nntpd-tls.t b/t/nntpd-tls.t index a0522e1f..23baf4e4 100644 --- a/t/nntpd-tls.t +++ b/t/nntpd-tls.t @@ -10,8 +10,6 @@ use PublicInbox::TestCommon; require_mods(qw(DBD::SQLite IO::Socket::SSL Net::NNTP IO::Poll)); Net::NNTP->can('starttls') or plan skip_all => 'Net::NNTP does not support TLS'; -IO::Socket::SSL->VERSION(2.007) or - plan skip_all => 'IO::Socket::SSL <2.007 not supported by Net::NNTP'; my $cert = 'certs/server-cert.pem'; my $key = 'certs/server-key.pem'; @@ -23,7 +21,7 @@ unless (-r $key && -r $cert) { use_ok 'PublicInbox::TLS'; use_ok 'IO::Socket::SSL'; require PublicInbox::InboxWritable; -require PublicInbox::MIME; +require PublicInbox::Eml; require PublicInbox::SearchIdx; our $need_zlib; eval { require Compress::Raw::Zlib } or @@ -63,9 +61,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 = eml_load 't/data/0001.patch'; ok($im->add($mime), 'message added'); $im->done; if ($version == 1) {