]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v1reindex.t
doc: TODO and release notes updates ahead of 1.6
[public-inbox.git] / t / v1reindex.t
index d70ed4b93da2957dc9019553cca9a740de60f83b..e66d89e5296e60b5e8157480d07a60f6be1f7c0a 100644 (file)
@@ -178,7 +178,7 @@ ok(!-d $xap, 'Xapian directories removed again');
        delete $ibx->{mm};
        is_deeply([ $ibx->mm->minmax ], $minmax, 'minmax unchanged');
        is($ibx->mm->num_highwater, 10, 'num_highwater as expected');
-       my $mset = $ibx->search->query('hello world', {mset=>1});
+       my $mset = $ibx->search->mset('hello world');
        isnt($mset->size, 0, 'got Xapian search results');
 
        my ($min, $max) = $ibx->mm->minmax;
@@ -224,7 +224,7 @@ ok(!-d $xap, 'Xapian directories removed again');
        eval { $rw->index_sync({reindex => 1}) };
        is($@, '', 'no error from indexing');
        is_deeply(\@warn, [], 'no warnings');
-       my $mset = $ibx->search->reopen->query('hello world', {mset=>1});
+       my $mset = $ibx->search->reopen->mset('hello world');
        isnt($mset->size, 0, 'search OK after basic -> medium');
 
        is($ibx->mm->num_highwater, 10, 'num_highwater as expected');
@@ -434,7 +434,7 @@ ok(!-d $xap, 'Xapian directories removed again');
        my $ibx = PublicInbox::Inbox->new({ %$ibx_config });
        my $f = $ibx->over->{dbh}->sqlite_db_filename;
        my $over = PublicInbox::OverIdx->new($f);
-       my $dbh = $over->connect;
+       my $dbh = $over->dbh;
        my $non_ghost_tids = sub {
                $dbh->selectall_arrayref(<<'');
 SELECT tid FROM over WHERE num > 0 ORDER BY tid ASC