X-Git-Url: http://git.indexdata.com/?p=irspy-moved-to-github.git;a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FSearch%2FBoolean.pm;h=8d3e5bb744dead7a0d13929b07d80347bd6523b2;hp=7289a371ab643a624208a09e69cce4314f0a6303;hb=adf4375f42066dd4498c08b68b9a784dd4ea7eac;hpb=7705f9616556c945a95fe5dc256ab5e5443179da diff --git a/lib/ZOOM/IRSpy/Test/Search/Boolean.pm b/lib/ZOOM/IRSpy/Test/Search/Boolean.pm index 7289a37..8d3e5bb 100644 --- a/lib/ZOOM/IRSpy/Test/Search/Boolean.pm +++ b/lib/ZOOM/IRSpy/Test/Search/Boolean.pm @@ -1,4 +1,4 @@ -# $Id: Boolean.pm,v 1.4 2007-02-23 15:03:44 mike Exp $ +# $Id: Boolean.pm,v 1.5 2007-03-15 11:40:39 mike Exp $ # See the "Main" test package for documentation @@ -34,8 +34,9 @@ sub start { sub found { my($conn, $task, $test_args, $event) = @_; my $operator = $test_args->{'operator'}; - my $n = $task->{rs}->size(); + my $n = $task->{rs}->size(); + $task->{rs}->destroy(); $conn->log("irspy_test", "search using boolean operator ", $operator, " found $n record", $n==1 ? "" : "s"); update($conn, $operator, 1); @@ -48,6 +49,7 @@ sub error { my($conn, $task, $test_args, $exception) = @_; my $operator = $test_args->{'operator'}; + $task->{rs}->destroy(); $conn->log("irspy_test", "search using boolean operator ", $operator, " had error: ", $exception); update($conn, $operator, 0);