Subject: | Failed tests if there's no connection |
Date: | Tue, 4 Aug 2015 11:27:18 -0600 |
To: | bug-Net-SNTP-Client [...] rt.cpan.org |
From: | Steve Bertrand <steve.bertrand [...] gmail.com> |
Attached is a patch that fixes the following test failures:
http://www.cpantesters.org/cpan/report/bb918aaa-3aac-11e5-a85a-e28fcaadd3a7
They are caused when a server is running the tests can't connect to the
host. You can repro this by putting erroneous characters into the hostname
in the %hashInputModuleTest thereby making it an invalid name (or simply be
on a host behind a firewall not allowing outbound connections, or unplug
your network connection).
The patch creates a SKIP block around the two tests that fail with no
connection, and skips them if the call returns an $error.
You might consider adding tests for connectivity early on, and put a
disclaimer that a valid network connection to a specified server is a must.
Cheers,
Steve (aka. stevieb)
Message body is not shown because sender requested not to inline it.