X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=blobdiff_plain;f=t%2Fxcpdb-reshard.t;h=c1af5d9a8f669ac53f25d00e925a9e928b651750;hp=1835fa62140f1e492c1fd1079855006a729602f6;hb=80b887f29b2ec71d025b4c266a1c26314758994c;hpb=851aa7183cf2b152d7ff187729bc896597d22fad diff --git a/t/xcpdb-reshard.t b/t/xcpdb-reshard.t index 1835fa62..c1af5d9a 100644 --- a/t/xcpdb-reshard.t +++ b/t/xcpdb-reshard.t @@ -49,7 +49,8 @@ for my $R (qw(2 4 1 3 3)) { ok(run_script($cmd), "xcpdb -R$R"); my @new_shards = grep(m!/\d+\z!, glob("$ibx->{inboxdir}/xap*/*")); is(scalar(@new_shards), $R, 'resharded to two shards'); - my $msgs = $ibx->search->query('s:this'); + my $mset = $ibx->search->mset('s:this'); + my $msgs = $ibx->search->mset_to_smsg($ibx, $mset); 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);