Abort test on 235 as well as 109.
authorMike Taylor <mike@indexdata.com>
Mon, 5 Mar 2007 12:15:11 +0000 (12:15 +0000)
committerMike Taylor <mike@indexdata.com>
Mon, 5 Mar 2007 12:15:11 +0000 (12:15 +0000)
lib/ZOOM/IRSpy/Test/Search/Explain.pm

index fb3433b..299ee69 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Explain.pm,v 1.5 2007-02-26 18:48:50 mike Exp $
+# $Id: Explain.pm,v 1.6 2007-03-05 12:15:11 mike Exp $
 
 # See the "Main" test package for documentation
 
 
 # See the "Main" test package for documentation
 
@@ -57,7 +57,8 @@ sub error {
     update($conn, $category, 0);
 
     return ZOOM::IRSpy::Status::TEST_BAD
     update($conn, $category, 0);
 
     return ZOOM::IRSpy::Status::TEST_BAD
-       if $exception->code() == 109; # Database unavailable
+       if ($exception->code() == 109 || # Database unavailable
+           $exception->code() == 235); # Database does not exist
 
     return ZOOM::IRSpy::Status::TASK_DONE;
 }
 
     return ZOOM::IRSpy::Status::TASK_DONE;
 }