diff options
author | Eric Wong <e@80x24.org> | 2019-05-15 01:18:10 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-05-15 05:54:18 +0000 |
commit | b5c64fc01d3e7ca6243fdd8b811b6291bdb12235 (patch) | |
tree | 056423983243b90b4f46c875e5e335e856932647 /t | |
parent | 0b1de991a099b5e8b9a9e3e85b5eaaacc9362dbb (diff) | |
download | public-inbox-b5c64fc01d3e7ca6243fdd8b811b6291bdb12235.tar.gz |
No point in leaving a mess of empty directories when Xapian doesn't load.
Diffstat (limited to 't')
-rw-r--r-- | t/indexlevels-mirror.t | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/t/indexlevels-mirror.t b/t/indexlevels-mirror.t index cac7050b..3dd43238 100644 --- a/t/indexlevels-mirror.t +++ b/t/indexlevels-mirror.t @@ -116,6 +116,11 @@ sub import_index_incremental { is($nr, 1, '2nd message gone from mirror'); is_deeply([map { $_->{mid} } @$msgs], ['m@1'], 'message unavailable in mirror'); + + if ($v == 2 && $level eq 'basic') { + is_deeply([glob("$ibx->{mainrepo}/xap*/?/")], [], + 'no Xapian partition directories for v2 basic'); + } } # we can probably cull some other tests and put full/medium tests, here |