summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2012-11-23 13:51:20 +0000
committerSteve Kemp <steve@steve.org.uk>2012-11-23 13:51:20 +0000
commitcbd1edb74ef4a63210e97e47c95002c4b53a39f2 (patch)
tree599ba15581ac4410fa406f21ceba66813fe8e8b1 /t
parenta549a9a893d05dcb5a489690d59bf3277cf4a88b (diff)
Updated.
Diffstat (limited to 't')
-rwxr-xr-xt/test-custodian-util-ping.rb12
-rwxr-xr-xt/test-multi-ping.rb1
2 files changed, 9 insertions, 4 deletions
diff --git a/t/test-custodian-util-ping.rb b/t/test-custodian-util-ping.rb
index 2659b5b..cec3ba9 100755
--- a/t/test-custodian-util-ping.rb
+++ b/t/test-custodian-util-ping.rb
@@ -90,9 +90,15 @@ class TestPingUtil < Test::Unit::TestCase
# Test lookup of hosts that don't work
#
def test_lookup_fail
- helper = Custodian::Util::Ping.new( "steve.steve.steve" );
- assert( ! helper.is_ipv6? )
- assert( ! helper.is_ipv4? )
+ %w( tessf.dfsdf.sdf.sdfsdf fdsfkljflj3.fdsfds.f3.dfs ).each do |name|
+ assert_nothing_raised do
+ helper = Custodian::Util::Ping.new( name )
+
+ assert( ! helper.is_ipv4? )
+ assert( ! helper.is_ipv6? )
+ end
+ end
+
end
diff --git a/t/test-multi-ping.rb b/t/test-multi-ping.rb
index c7f65cf..e75947c 100755
--- a/t/test-multi-ping.rb
+++ b/t/test-multi-ping.rb
@@ -41,7 +41,6 @@ class TestMultiPing < Test::Unit::TestCase
#
# Calling with a hostname should be fine mistake.
#
- assert_nothing_raised do
obj = Custodian::Util::Ping.new( "some.host.anme" )
end
end