From a4705b80e24c0e6dffa6079c8a944e3311ee796a Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Tue, 15 Oct 2013 14:48:32 +0100 Subject: Fixed test cases to succeed. --- t/test-custodian-util-dns.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/test-custodian-util-dns.rb b/t/test-custodian-util-dns.rb index 322df3a..6410dd8 100755 --- a/t/test-custodian-util-dns.rb +++ b/t/test-custodian-util-dns.rb @@ -34,13 +34,13 @@ class TestDNSUtil < Test::Unit::TestCase # IPv6 lookup # details = Custodian::Util::DNS.hostname_to_ip( "ipv6.steve.org.uk" ) - assert( details =~ /2001:41c8:51:2aa:feff:ff:fe00:ec3/i ) + assert( details == "2001:41c8:125:40::80" ) # # IPv4 lookup # details = Custodian::Util::DNS.hostname_to_ip( "ipv4.steve.org.uk" ) - assert( details =~ /213\.138\.103\.170/i ) + assert( details == "80.68.85.40" ) # # Failure case -- cgit v1.2.1