X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FPing.pm;h=ae271266c47f13269f67616d8ad3f29352f2b8b7;hb=e9e466f947532931be96ad87733bfac0cfae4994;hp=77e9805966d42c834b80f38f629ea72d3dd1fc18;hpb=677bef0d836d1827b2d701636dfbb53380cd98cf;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Test/Ping.pm b/lib/ZOOM/IRSpy/Test/Ping.pm index 77e9805..ae27126 100644 --- a/lib/ZOOM/IRSpy/Test/Ping.pm +++ b/lib/ZOOM/IRSpy/Test/Ping.pm @@ -1,4 +1,4 @@ -# $Id: Ping.pm,v 1.13 2006-10-12 14:37:24 mike Exp $ +# $Id: Ping.pm,v 1.15 2006-11-20 15:05:53 mike Exp $ # See the "Main" test package for documentation @@ -16,7 +16,7 @@ sub start { my $class = shift(); my($conn) = @_; - $conn->irspy_connect(undef, + $conn->irspy_connect(undef, {}, ZOOM::Event::CONNECT, \&connected, exception => \¬_connected); } @@ -32,8 +32,8 @@ sub maybe_connected { my $rec = $conn->record(); $rec->append_entry("irspy:status", "" . isodate(time()) . ""); - $conn->option(pod_omit => 1) if !$ok; - return ZOOM::IRSpy::Status::TASK_DONE; + return $ok ? ZOOM::IRSpy::Status::TEST_GOOD : + ZOOM::IRSpy::Status::TEST_BAD; }