From 73531ae12742d0cdc090bd60fb8f4b853f9873fa Mon Sep 17 00:00:00 2001 From: Guillaume Rousse Date: Sun, 1 Mar 2015 16:47:40 +0100 Subject: [PATCH] fix test condition --- t/agent/tools/network.t | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/t/agent/tools/network.t b/t/agent/tools/network.t index dd3de19def..512d0070d8 100755 --- a/t/agent/tools/network.t +++ b/t/agent/tools/network.t @@ -95,13 +95,16 @@ foreach my $test (@mask_tests) { SKIP: { skip 'Author test', 2 unless $ENV{TEST_AUTHOR}; +my @localhost_results = resolve("localhost"); + ok( - resolve("localhost"), + @localhost_results, "Can resolve localhost" ); +my @google_results = resolve("www.google.com"); ok( - resolve("www.google.com") > 2, + @google_results >= 2, "Can resolve www.google.com" ); }