about summary refs log tree commit homepage
path: root/t/nntpd.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-08-20 20:24:39 +0000
committerEric Wong <e@yhbt.net>2020-08-20 21:11:04 +0000
commit6f5b7803c82c45105272802b818df684b87bd2ec (patch)
treee4c9b6bc5096b62a0074b03f65f266ee67ca0ce1 /t/nntpd.t
parent3f3867da5e5ff10b941e942c9974ddbf1e5464c1 (diff)
downloadpublic-inbox-6f5b7803c82c45105272802b818df684b87bd2ec.tar.gz
We can reduce the need to edit the config file for NNTP group names
this way.
Diffstat (limited to 't/nntpd.t')
-rw-r--r--t/nntpd.t9
1 files changed, 3 insertions, 6 deletions
diff --git a/t/nntpd.t b/t/nntpd.t
index b9b9a63d..74e21a41 100644
--- a/t/nntpd.t
+++ b/t/nntpd.t
@@ -46,14 +46,11 @@ my $ibx = {
 $ibx = PublicInbox::Inbox->new($ibx);
 {
         local $ENV{HOME} = $home;
-        my @cmd = ('-init', $group, $inboxdir, 'http://example.com/', $addr);
-        push @cmd, "-V$version", '-Lbasic';
+        my @cmd = ('-init', $group, $inboxdir, 'http://example.com/', $addr,
+                "-V$version", '-Lbasic', '--newsgroup', $group);
         ok(run_script(\@cmd), 'init OK');
-        is(xsys(qw(git config), "--file=$home/.public-inbox/config",
-                        "publicinbox.$group.newsgroup", $group),
-                0, 'enabled newsgroup');
-        my $len;
 
+        my $len;
         $ibx = PublicInbox::InboxWritable->new($ibx);
         my $im = $ibx->importer(0);