]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/v1reindex.t
over: rename ->connect method to ->dbh
[public-inbox.git] / t / v1reindex.t
index 8cb751881ca4e93d91f26811d4f1cac74aecf4cb..a5c85ffbfa9bf79278bade8ba9c6b5fb55b74492 100644 (file)
@@ -221,7 +221,7 @@ ok(!-d $xap, 'Xapian directories removed again');
        $config{indexlevel} = 'medium';
        my $ibx = PublicInbox::Inbox->new(\%config);
        my $rw = PublicInbox::SearchIdx->new($ibx, 1);
-       eval { $rw->index_sync };
+       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});
@@ -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