X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FRecord%2FFetch.pm;h=d3cb7bd2b5345f284fb2cb67bf625f90b712431b;hb=3528d97bca02191cea884af5154e23ad666d0003;hp=d45524c538f8d01b3ef6fcdfab2954f1e1c39404;hpb=e505eb5744ec5928a4685cc3064ec80791ee021a;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm index d45524c..d3cb7bd 100644 --- a/lib/ZOOM/IRSpy/Test/Record/Fetch.pm +++ b/lib/ZOOM/IRSpy/Test/Record/Fetch.pm @@ -1,4 +1,4 @@ -# $Id: Fetch.pm,v 1.22 2007-02-13 15:04:08 mike Exp $ +# $Id: Fetch.pm,v 1.24 2007-02-22 17:45:43 mike Exp $ # See the "Main" test package for documentation @@ -38,7 +38,9 @@ sub completed_search { my($conn, $task, $udata, $event) = @_; my $n = $task->{rs}->size(); - $conn->log("irspy_test", "Fetch test search found $n records"); + $conn->log("irspy_test", "Fetch test search (", $task->{query}, ") ", + ref $event && $event->isa("ZOOM::Exception") ? + "failed: $event" : "found $n records (event=$event)"); if ($n == 0) { my $qindex = $udata->{queryindex}+1; my $q = $queries[$qindex]; @@ -46,7 +48,7 @@ sub completed_search { if !defined $q; $conn->log("irspy_test", "Trying another search ..."); - $conn->irspy_search_pqf($queries[$qindex], { queryindex => $n }, {}, + $conn->irspy_search_pqf($queries[$qindex], { queryindex => $qindex }, {}, ZOOM::Event::RECV_SEARCH, \&completed_search, exception => \&completed_search); return ZOOM::IRSpy::Status::TASK_DONE;