diff options
author | Eric Wong <e@80x24.org> | 2019-06-14 17:13:04 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-06-14 17:27:10 +0000 |
commit | 20ddcb02821ff3bf8afd2c2279e0889492c93fd9 (patch) | |
tree | 8f9af12f09b4df05594ca916057f54dd48728ecc /t/search.t | |
parent | 585314673236d664729fe3ab2d4fb229d1c0f2d5 (diff) | |
download | public-inbox-20ddcb02821ff3bf8afd2c2279e0889492c93fd9.tar.gz |
No sense in supporting multiple methods of initialization for an internal class.
Diffstat (limited to 't/search.t')
-rw-r--r-- | t/search.t | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -18,7 +18,7 @@ my $ibx = PublicInbox::Inbox->new({ mainrepo => $git_dir }); my ($root_id, $last_id); is(0, system(qw(git init --shared -q --bare), $git_dir), "git init (main)"); -eval { PublicInbox::Search->new($git_dir)->xdb }; +eval { PublicInbox::Search->new($ibx)->xdb }; ok($@, "exception raised on non-existent DB"); my $rw = PublicInbox::SearchIdx->new($ibx, 1); @@ -27,7 +27,7 @@ $ibx->with_umask(sub { $rw->_xdb_release; }); $rw = undef; -my $ro = PublicInbox::Search->new($git_dir); +my $ro = PublicInbox::Search->new($ibx); my $rw_commit = sub { $rw->commit_txn_lazy if $rw; $rw = PublicInbox::SearchIdx->new($ibx, 1); |