]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/nntp.t
t/solver_git: test with -httpd, too
[public-inbox.git] / t / nntp.t
index f3a9c7d81e802a6b69c0cc32b80a1f6bf6243df4..11a175bb47d65c8c5b624e29b45dda4074731d9f 100644 (file)
--- a/t/nntp.t
+++ b/t/nntp.t
@@ -3,12 +3,8 @@
 use strict;
 use warnings;
 use Test::More;
-
-foreach my $mod (qw(DBD::SQLite 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',