From: Mike Taylor Date: Fri, 21 Dec 2012 16:20:19 +0000 (+0000) Subject: Test::Search::Explain no longer returns TEST_BAD when the IR-Explain-1 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=a9e8ba6d3e01d894bc6582f4caa69a97b573271a;hp=b0de35168bbb3c04f389716495fe0b2d6d12bd5b Test::Search::Explain no longer returns TEST_BAD when the IR-Explain-1 database doesn't exist: the test is not "bad" in the IRSpy sense that other tests at the same level need to be skipped, but has completed successfully (and determined that Explain is not supported). --- diff --git a/lib/ZOOM/IRSpy/Test/Search/Explain.pm b/lib/ZOOM/IRSpy/Test/Search/Explain.pm index 087b846..7467e26 100644 --- a/lib/ZOOM/IRSpy/Test/Search/Explain.pm +++ b/lib/ZOOM/IRSpy/Test/Search/Explain.pm @@ -55,7 +55,7 @@ sub error { update($conn, $category, 0); zoom_error_timeout_update($conn, $exception); - return ZOOM::IRSpy::Status::TEST_BAD + return ZOOM::IRSpy::Status::TEST_OK if ($exception->code() == 109 || # Database unavailable $exception->code() == 235); # Database does not exist