X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=lib%2FZOOM%2FIRSpy%2FTest%2FPing.pm;h=3b88e34ae50de83c8e4f3e208451112298af6f90;hb=c3814e75a795a951ec1c89f9214709f8db9d233d;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..3b88e34 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.16 2006-11-29 18:18:37 mike Exp $ # See the "Main" test package for documentation @@ -11,12 +11,14 @@ use warnings; use ZOOM::IRSpy::Test; our @ISA = qw(ZOOM::IRSpy::Test); +use ZOOM::IRSpy::Utils qw(isodate); + sub start { my $class = shift(); my($conn) = @_; - $conn->irspy_connect(undef, + $conn->irspy_connect(undef, {}, ZOOM::Event::CONNECT, \&connected, exception => \¬_connected); } @@ -32,8 +34,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; }