]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/lei.t
update copyrights for 2021
[public-inbox.git] / t / lei.t
diff --git a/t/lei.t b/t/lei.t
index a95a0efc9a5f79d6d487c9b1b2b2229e4c7b577a..690878ce7262ae9131adb668718ef415fec5c47e 100644 (file)
--- a/t/lei.t
+++ b/t/lei.t
@@ -1,5 +1,5 @@
 #!perl -w
-# Copyright (C) 2020 all contributors <meta@public-inbox.org>
+# Copyright (C) 2020-2021 all contributors <meta@public-inbox.org>
 # License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
 use strict;
 use v5.10.1;
@@ -154,38 +154,38 @@ my $setup_publicinboxes = sub {
        $seen || BAIL_OUT 'no imports';
 };
 
-my $test_extinbox = sub {
+my $test_external = sub {
        $setup_publicinboxes->();
        $cleanup->();
-       $lei->('ls-extinbox');
-       is($out.$err, '', 'ls-extinbox no output, yet');
+       $lei->('ls-external');
+       is($out.$err, '', 'ls-external no output, yet');
        ok(!-e $config_file && !-e $store_dir,
-               'nothing created by ls-extinbox');
+               'nothing created by ls-external');
 
        my $cfg = PublicInbox::Config->new;
        $cfg->each_inbox(sub {
                my ($ibx) = @_;
-               ok($lei->(qw(add-extinbox -q), $ibx->{inboxdir}),
-                       'added extinbox');
+               ok($lei->(qw(add-external -q), $ibx->{inboxdir}),
+                       'added external');
                is($out.$err, '', 'no output');
        });
        ok(-s $config_file && -e $store_dir,
-               'add-extinbox created config + store');
+               'add-external created config + store');
        my $lcfg = PublicInbox::Config->new($config_file);
        $cfg->each_inbox(sub {
                my ($ibx) = @_;
-               is($lcfg->{"extinbox.$ibx->{inboxdir}.boost"}, 0,
+               is($lcfg->{"external.$ibx->{inboxdir}.boost"}, 0,
                        "configured boost on $ibx->{name}");
        });
-       $lei->('ls-extinbox');
-       like($out, qr/boost=0\n/s, 'ls-extinbox has output');
+       $lei->('ls-external');
+       like($out, qr/boost=0\n/s, 'ls-external has output');
 };
 
 my $test_lei_common = sub {
        $test_help->();
        $test_config->();
        $test_init->();
-       $test_extinbox->();
+       $test_external->();
 };
 
 my $test_lei_oneshot = $ENV{TEST_LEI_ONESHOT};