X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=lib%2FZOOM%2FIRSpy%2FTest%2FPing.pm;h=3b88e34ae50de83c8e4f3e208451112298af6f90;hb=c3814e75a795a951ec1c89f9214709f8db9d233d;hp=52c002d1e993f1c1ed5d7e800820bf5fab54096e;hpb=67fd06f7fc317ab571a89000955976cda2879bd0;p=irspy-moved-to-github.git diff --git a/lib/ZOOM/IRSpy/Test/Ping.pm b/lib/ZOOM/IRSpy/Test/Ping.pm index 52c002d..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.14 2006-10-25 10:49:37 mike Exp $ +# $Id: Ping.pm,v 1.16 2006-11-29 18:18:37 mike Exp $ # See the "Main" test package for documentation @@ -11,6 +11,8 @@ use warnings; use ZOOM::IRSpy::Test; our @ISA = qw(ZOOM::IRSpy::Test); +use ZOOM::IRSpy::Utils qw(isodate); + sub start { my $class = shift(); @@ -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; }