about summary refs log tree commit homepage
path: root/t/mda_filter_rubylang.t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-06-07 20:02:15 +0000
committerEric Wong <e@yhbt.net>2020-06-08 08:07:40 +0000
commit8722adec7acac538c1cb92de6d53002a4e4e33b8 (patch)
treedb046fdc511167345fba76e39c6a6f739e4de048 /t/mda_filter_rubylang.t
parent5df08b6cd4931e87c1cf676014256d00e3cdfc2c (diff)
downloadpublic-inbox-8722adec7acac538c1cb92de6d53002a4e4e33b8.tar.gz
InboxWritable should only set $v2w->{parallel} if the $parallel
flag is defined to 0 or 1.  We want indexing a new inbox to
utilize SMP, just like --reindex.

-index once again allows -j0/--jobs=0 to force single-process
use, and we'll be ensuring that works in tests to maintain
performance on small systems.

Fixes: 61a2fff5b34a3e32 ("admin: move index_inbox over")
Diffstat (limited to 't/mda_filter_rubylang.t')
-rw-r--r--t/mda_filter_rubylang.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/mda_filter_rubylang.t b/t/mda_filter_rubylang.t
index 483fcb85..5b6bf28b 100644
--- a/t/mda_filter_rubylang.t
+++ b/t/mda_filter_rubylang.t
@@ -25,7 +25,7 @@ for my $v (qw(V1 V2)) {
         my $cmd = [ '-init', "-$v", $v, $inboxdir,
                 "http://example.com/$v", $addr ];
         ok(run_script($cmd), 'public-inbox-init');
-        ok(run_script(['-index', $inboxdir]), 'public-inbox-index');
+        ok(run_script([qw(-index -j0), $inboxdir]), 'public-inbox-index');
         is(xsys(@cfg, "$cfgpfx.filter", 'PublicInbox::Filter::RubyLang'), 0);
         is(xsys(@cfg, "$cfgpfx.altid",
                 'serial:alerts:file=msgmap.sqlite3'), 0);