about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-06-14 08:02:32 +0000
committerEric Wong <e@80x24.org>2019-06-14 21:56:40 +0000
commit2e0abeb5e0e2ffa55ffef650f91f50086f143019 (patch)
tree60f9eb7ffae09773a56e0c1dcccd7e12c76558c7
parent240de56c97d767cd5c819ac0be858359e8d2eff3 (diff)
downloadpublic-inbox-2e0abeb5e0e2ffa55ffef650f91f50086f143019.tar.gz
Another potentially user-facing piece made consistent with
Xapian terminology.
-rw-r--r--t/indexlevels-mirror.t2
-rw-r--r--t/psgi_v2.t2
-rw-r--r--t/xcpdb-reshard.t6
3 files changed, 5 insertions, 5 deletions
diff --git a/t/indexlevels-mirror.t b/t/indexlevels-mirror.t
index 35974947..b685da14 100644
--- a/t/indexlevels-mirror.t
+++ b/t/indexlevels-mirror.t
@@ -138,7 +138,7 @@ sub import_index_incremental {
 
         if ($v == 2 && $level eq 'basic') {
                 is_deeply([glob("$ibx->{mainrepo}/xap*/?/")], [],
-                         'no Xapian partition directories for v2 basic');
+                         'no Xapian shard directories for v2 basic');
         }
         if ($level ne 'basic') {
                 ($nr, $msgs) = $ro_mirror->search->reopen->query('m:m@2');
diff --git a/t/psgi_v2.t b/t/psgi_v2.t
index 5c358cde..36010689 100644
--- a/t/psgi_v2.t
+++ b/t/psgi_v2.t
@@ -205,7 +205,7 @@ test_psgi(sub { $www->call(@_) }, sub {
         $res = $cb->(GET('/v2test/0.git/info/refs'));
         is($res->code, 200, 'got info refs for dumb clones w/ .git suffix');
         $res = $cb->(GET('/v2test/info/refs'));
-        is($res->code, 404, 'unpartitioned git URL fails');
+        is($res->code, 404, 'v2 git URL w/o shard fails');
 
         # ensure conflicted attachments can be resolved
         foreach my $body (qw(old new)) {
diff --git a/t/xcpdb-reshard.t b/t/xcpdb-reshard.t
index ce552f54..bf56404d 100644
--- a/t/xcpdb-reshard.t
+++ b/t/xcpdb-reshard.t
@@ -48,14 +48,14 @@ is(scalar(@parts), $nproc, 'got expected parts');
 my $orig = $ibx->over->query_xover(1, $ndoc);
 my %nums = map {; "$_->{num}" => 1 } @$orig;
 
-# ensure we can go up or down in partitions, or stay the same:
+# ensure we can go up or down in shards, or stay the same:
 for my $R (qw(2 4 1 3 3)) {
         delete $ibx->{search}; # release old handles
         is(system(@xcpdb, "-R$R", $ibx->{mainrepo}), 0, "xcpdb -R$R");
         my @new_parts = grep(m!/\d+\z!, glob("$ibx->{mainrepo}/xap*/*"));
-        is(scalar(@new_parts), $R, 'repartitioned to two parts');
+        is(scalar(@new_parts), $R, 'resharded to two parts');
         my $msgs = $ibx->search->query('s:this');
-        is(scalar(@$msgs), $ndoc, 'got expected docs after repartitioning');
+        is(scalar(@$msgs), $ndoc, 'got expected docs after resharding');
         my %by_mid = map {; "$_->{mid}" => $_ } @$msgs;
         ok($by_mid{"m$_\@example.com"}, "$_ exists") for (1..$ndoc);