Add new test-search.
[irspy-moved-to-github.git] / lib / ZOOM / IRSpy / Test / Record / Fetch.pm
index 0569245..9d5f9c5 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: Fetch.pm,v 1.28 2007-05-01 16:31:08 mike Exp $
+# $Id: Fetch.pm,v 1.30 2009-04-15 13:57:38 mike Exp $
 
 # See the "Main" test package for documentation
 
@@ -17,6 +17,7 @@ my @queries = (
               "\@attr 1=4 mineral",
               "\@attr 1=4 computer",
               "\@attr 1=44 mineral", # Smithsonian doesn't support AP 4!
+              "\@attr 1=1016 mineral", # Connector Framework only does 1016
               ### We can add more queries here
               );
 
@@ -101,7 +102,8 @@ sub record {
     my $ok = 0;
     if (!$record || $record->error()) {
        $conn->log("irspy_test", "retrieval of $syn record failed: ",
-                  defined $record ? $record->exception() : "???");
+                  defined $record ? $record->exception() :
+                                    $conn->exception());
     } else {
        $ok = 1;
        my $text = $record->render();