X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FSearch%2FDan1.pm;h=51b660772ab37d03121953d803ad8c624177eafb;hp=0c3ce352f0d14b50ce0f29f994fae1c96f69cf8f;hb=adf4375f42066dd4498c08b68b9a784dd4ea7eac;hpb=7705f9616556c945a95fe5dc256ab5e5443179da diff --git a/lib/ZOOM/IRSpy/Test/Search/Dan1.pm b/lib/ZOOM/IRSpy/Test/Search/Dan1.pm index 0c3ce35..51b6607 100644 --- a/lib/ZOOM/IRSpy/Test/Search/Dan1.pm +++ b/lib/ZOOM/IRSpy/Test/Search/Dan1.pm @@ -1,4 +1,4 @@ -# $Id: Dan1.pm,v 1.6 2007-02-23 15:03:44 mike Exp $ +# $Id: Dan1.pm,v 1.7 2007-03-15 11:40:52 mike Exp $ # See the "Main" test package for documentation @@ -30,8 +30,9 @@ sub start { sub found { my($conn, $task, $test_args, $event) = @_; my $attr = $test_args->{'attr'}; - my $n = $task->{rs}->size(); + my $n = $task->{rs}->size(); + $task->{rs}->destroy(); $conn->log("irspy_test", "search on access-point $attr found $n record", $n==1 ? "" : "s"); update($conn, $attr, 1); @@ -44,6 +45,7 @@ sub error { my($conn, $task, $test_args, $exception) = @_; my $attr = $test_args->{'attr'}; + $task->{rs}->destroy(); $conn->log("irspy_test", "search on access-point $attr had error: ", $exception); update($conn, $attr, 0);