Subject: | t/valid.t: fixed for disabled networking |
Date: | Tue, 9 Aug 2011 12:54:53 +0400 |
To: | bug-email-valid [...] rt.cpan.org |
From: | Alexey Tourbin <at [...] altlinux.ru> |
Hello,
When networking is disabled (or somehow misconfigured), t/valid.t dies
with "query timed out" exception in a skip test. The condition should
be wrapped in eval.
--- Email-Valid-0.184/t/valid.t- 2010-01-27 16:51:54.000000000 +0000
+++ Email-Valid-0.184/t/valid.t 2011-08-09 08:45:10.471881619 +0000
@@ -86,7 +86,7 @@ ok(
SKIP: {
skip "your dns appears missing or failing to resolve", 2
- unless $v->address(-address=> 'devnull@pobox.com', -mxcheck => 1);
+ unless eval { $v->address(-address=> 'devnull@pobox.com', -mxcheck => 1) };
if (
$v->address(-address => 'blort@will-never-exist.pobox.com', -mxcheck => 1)