]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/indexlevels-mirror.t
searchidx: do not create empty Xapian partitions for basic
[public-inbox.git] / t / indexlevels-mirror.t
index cac7050bdca3840c484cc778c3d5484e892652f3..3dd432382672344bb4458acb0c2ef95c03160fbd 100644 (file)
@@ -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