diff options
author | Eric Wong <e@yhbt.net> | 2020-07-31 21:36:18 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-08-01 08:07:39 +0000 |
commit | 0faddbbfecaa784c584d3a625628c288fe9316c7 (patch) | |
tree | 14beae8e952d30e551c470d52c947cb831d362fe /t | |
parent | 0821af5f21fdb083020ae2e3e79e4227ef59cd4f (diff) | |
download | public-inbox-0faddbbfecaa784c584d3a625628c288fe9316c7.tar.gz |
v?fork failures seems to be the cause of locks not getting released in -watch. Ensure lock release doesn't get skipped in ->done for both v1 and v2 inboxes. We also need to do everything we can to ensure DB handles, pipes and processes get released even in the face of failure. While we're at it, make failures around `git update-server-info' non-fatal, since smart HTTP seems more popular anyways. v2 changes: - spawn: show failing command - ensure waitpid is synchronous for inotify events - teardown all fast-import processes on exception, not just the failing one - beef up lock_release error handling - release lock on fast-import spawn failure
Diffstat (limited to 't')
-rw-r--r-- | t/psgi_search.t | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/psgi_search.t b/t/psgi_search.t index 64f8b1ac..2d12ba6a 100644 --- a/t/psgi_search.t +++ b/t/psgi_search.t @@ -14,6 +14,7 @@ my @mods = qw(DBD::SQLite Search::Xapian HTTP::Request::Common Plack::Test require_mods(@mods); use_ok($_) for (qw(HTTP::Request::Common Plack::Test)); use_ok 'PublicInbox::WWW'; +use_ok 'PublicInbox::SearchIdx'; my ($tmpdir, $for_destroy) = tmpdir(); my $ibx = PublicInbox::Inbox->new({ |