aboutsummaryrefslogtreecommitdiff
path: root/test/th_mauve_resolv.rb
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-11-23 10:49:11 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-11-23 10:49:11 +0000
commit73972fbcf2ce001c0b465f57bc748ab3a976412c (patch)
treeabd373ac65d7d4bb1ca6794e339a74c87182b12e /test/th_mauve_resolv.rb
parent7ee5acc25e47a0d1c8d27acb8ce4e80ad48087b6 (diff)
Minimal DNS now also extends to resolution of items in the source
lists too, as well as the hostname/IP being queried.
Diffstat (limited to 'test/th_mauve_resolv.rb')
-rw-r--r--test/th_mauve_resolv.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/th_mauve_resolv.rb b/test/th_mauve_resolv.rb
index 10bdacc..3451690 100644
--- a/test/th_mauve_resolv.rb
+++ b/test/th_mauve_resolv.rb
@@ -22,10 +22,11 @@ module Mauve
"www2.example.com" => %w(1.2.3.5 2001:2::2)
}
if lookup.has_key?(host)
- self.count += lookup[host].length if $debug
+ self.count += lookup[host].length
lookup[host]
else
- get_ips_for_without_testing(host)
+ self.count += 1
+ []
end
end