about summary refs log tree commit homepage
path: root/t/v1reindex.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-07-19 21:43:10 +0000
committerEric Wong <e@80x24.org>2018-07-19 21:49:10 +0000
commit4caa768779a9b417321736b090d50f3421a799de (patch)
treeef541207838dad1db44295bedadc8f8418d02c23 /t/v1reindex.t
parentce5af2029b6bc703f3d8cf7bb5c68732c41f210e (diff)
downloadpublic-inbox-4caa768779a9b417321736b090d50f3421a799de.tar.gz
The correct field is underscore-less for consistency with
git-config naming conventions.  While we're at it, beef up
the v2 tests with actual size checks, too.

I also noticed phrase searching still seems to work for
the limited test case, so I left it documented; but the
size checking verifies the space savings.
Diffstat (limited to 't/v1reindex.t')
-rw-r--r--t/v1reindex.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/v1reindex.t b/t/v1reindex.t
index ff32750f..d97938d3 100644
--- a/t/v1reindex.t
+++ b/t/v1reindex.t
@@ -111,7 +111,7 @@ ok(unlink "$mainrepo/public-inbox/msgmap.sqlite3", 'remove msgmap');
 remove_tree($xap);
 ok(!-d $xap, 'Xapian directories removed again');
 
-$ibx_config->{index_level} = 'medium';
+$ibx_config->{indexlevel} = 'medium';
 $ibx = PublicInbox::Inbox->new($ibx_config);
 $rw = PublicInbox::SearchIdx->new($ibx, 1);
 {
@@ -131,7 +131,7 @@ ok(unlink "$mainrepo/public-inbox/msgmap.sqlite3", 'remove msgmap');
 remove_tree($xap);
 ok(!-d $xap, 'Xapian directories removed again');
 
-$ibx_config->{index_level} = 'basic';
+$ibx_config->{indexlevel} = 'basic';
 $ibx = PublicInbox::Inbox->new($ibx_config);
 $rw = PublicInbox::SearchIdx->new($ibx, 1);
 {