From: Mike Taylor Date: Wed, 28 Feb 2007 17:32:48 +0000 (+0000) Subject: Test is BAD if database is unavailable. X-Git-Tag: CPAN-v1.02~54^2~524 X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=commitdiff_plain;h=9eaa3591a69586b241f756582839c9976a46c461 Test is BAD if database is unavailable. --- diff --git a/lib/ZOOM/IRSpy/Test/Search/Bib1.pm b/lib/ZOOM/IRSpy/Test/Search/Bib1.pm index dc1fb0a..4628f14 100644 --- a/lib/ZOOM/IRSpy/Test/Search/Bib1.pm +++ b/lib/ZOOM/IRSpy/Test/Search/Bib1.pm @@ -1,4 +1,4 @@ -# $Id: Bib1.pm,v 1.16 2007-02-26 17:32:13 mike Exp $ +# $Id: Bib1.pm,v 1.17 2007-02-28 17:32:48 mike Exp $ # See the "Main" test package for documentation @@ -52,7 +52,8 @@ sub error { update($conn, $attr, 0); return ZOOM::IRSpy::Status::TEST_BAD - if $exception->code() == 1; # permanent system error + if ($exception->code() == 1 || # permanent system error + $exception->code() == 109); # Database unavailable return ZOOM::IRSpy::Status::TASK_DONE; }