Skip to content

Commit

Permalink
fix test condition
Browse files Browse the repository at this point in the history
  • Loading branch information
guillomovitch committed Mar 1, 2015
1 parent 3d165f0 commit 73531ae
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions t/agent/tools/network.t
Expand Up @@ -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"
);
}

0 comments on commit 73531ae

Please sign in to comment.