]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/extsearch: use indexlevel=basic in inboxes
authorEric Wong <e@80x24.org>
Wed, 9 Dec 2020 09:25:11 +0000 (09:25 +0000)
committerEric Wong <e@80x24.org>
Thu, 10 Dec 2020 06:39:38 +0000 (06:39 +0000)
There's no need for per-inbox Xapian DBs when using extindex, so
reduce wear on the poor systems this test runs on.

t/extsearch.t

index 97786b21df35d195774fbb2e9e6d663f7093362b..965122278e56a777ac31548fb661b7e7ac984abd 100644 (file)
@@ -25,8 +25,8 @@ EOF
 close $fh or BAIL_OUT $!;
 my $v2addr = 'v2test@example.com';
 my $v1addr = 'v1test@example.com';
-ok(run_script([qw(-init -V2 v2test --newsgroup v2.example), "$home/v2test",
-       'http://example.com/v2test', $v2addr ]), 'v2test init');
+ok(run_script([qw(-init -Lbasic -V2 v2test --newsgroup v2.example),
+       "$home/v2test", 'http://example.com/v2test', $v2addr ]), 'v2test init');
 my $env = { ORIGINAL_RECIPIENT => $v2addr };
 my $eml = eml_load('t/utf8.eml');
 
@@ -50,7 +50,7 @@ seek($fh, 0, SEEK_SET) or BAIL_OUT $!;
 $env = { ORIGINAL_RECIPIENT => $v1addr };
 run_script(['-mda', '--no-precheck'], $env, { 0 => $fh }) or BAIL_OUT '-mda';
 
-run_script(['-index', "$home/v1test"]) or BAIL_OUT "index $?";
+run_script([qw(-index -Lbasic), "$home/v1test"]) or BAIL_OUT "index $?";
 
 ok(run_script([qw(-extindex --all), "$home/extindex"]), 'extindex init');
 {