X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fnntp.t;h=11a175bb47d65c8c5b624e29b45dda4074731d9f;hb=a09f678d8254064af7ca6dcfb3c3f84b5ae37b51;hp=c4b9737c7a556a9f582b0609ed4f915ac33a4c28;hpb=1f4b022c38faba208528d0d5c993d569682b2a09;p=public-inbox.git diff --git a/t/nntp.t b/t/nntp.t index c4b9737c..11a175bb 100644 --- a/t/nntp.t +++ b/t/nntp.t @@ -1,14 +1,10 @@ -# Copyright (C) 2015-2018 all contributors +# Copyright (C) 2015-2019 all contributors # License: AGPL-3.0+ use strict; use warnings; use Test::More; - -foreach my $mod (qw(DBD::SQLite Search::Xapian Data::Dumper)) { - eval "require $mod"; - plan skip_all => "$mod missing for nntp.t" if $@; -} - +use PublicInbox::TestCommon; +require_mods(qw(DBD::SQLite Data::Dumper)); use_ok 'PublicInbox::NNTP'; use_ok 'PublicInbox::Inbox'; @@ -99,7 +95,7 @@ use_ok 'PublicInbox::Inbox'; require Email::MIME; my $u = 'https://example.com/a/'; my $ng = PublicInbox::Inbox->new({ name => 'test', - mainrepo => 'test.git', + inboxdir => 'test.git', address => 'a@example.com', -primary_address => 'a@example.com', newsgroup => 'test',