X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FSearch%2FExplain.pm;h=fb3433b001c4f0377e3e6a3f3293a729c44ccf2d;hp=a369262bcee6bdbf3a7bfd1e5430c83047d9a20d;hb=c0d6389fc73e4279d9a9384d3f98d88114ec831a;hpb=661bdf876acd181b2435f475a59524730eb2f2c3 diff --git a/lib/ZOOM/IRSpy/Test/Search/Explain.pm b/lib/ZOOM/IRSpy/Test/Search/Explain.pm index a369262..fb3433b 100644 --- a/lib/ZOOM/IRSpy/Test/Search/Explain.pm +++ b/lib/ZOOM/IRSpy/Test/Search/Explain.pm @@ -1,4 +1,4 @@ -# $Id: Explain.pm,v 1.3 2006-10-26 12:55:35 mike Exp $ +# $Id: Explain.pm,v 1.5 2007-02-26 18:48:50 mike Exp $ # See the "Main" test package for documentation @@ -25,7 +25,7 @@ sub start { $conn->irspy_search_pqf('@attr exp-1 1=1 ' . $category, {'category' => $category}, { databaseName => 'IR-Explain-1' }, - ZOOM::Event::RECV_SEARCH, \&found, + ZOOM::Event::ZEND, \&found, exception => \&error); } } @@ -56,6 +56,9 @@ sub error { $conn->log("irspy_test", "Explain category lookup failed: ", $exception); update($conn, $category, 0); + return ZOOM::IRSpy::Status::TEST_BAD + if $exception->code() == 109; # Database unavailable + return ZOOM::IRSpy::Status::TASK_DONE; }