summaryrefslogtreecommitdiff
path: root/test/resolv/test_dns.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/resolv/test_dns.rb')
-rw-r--r--test/resolv/test_dns.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb
index 3fce206c6b..9ae0df404f 100644
--- a/test/resolv/test_dns.rb
+++ b/test/resolv/test_dns.rb
@@ -116,7 +116,7 @@ class TestResolvDNS < Test::Unit::TestCase
}
diff = Time.now - start
assert rv.empty?, "unexpected: #{rv.inspect} (expected empty)"
- assert_in_delta 0.1, diff, 0.05
+ assert_operator 0.1, :<=, diff
rv = Resolv::DNS.open(:nameserver_port => [[host, port]]) {|dns|
dns.timeouts = [ 0.1, 0.2 ]
@@ -125,7 +125,7 @@ class TestResolvDNS < Test::Unit::TestCase
}
diff = Time.now - start
assert rv.empty?, "unexpected: #{rv.inspect} (expected empty)"
- assert_in_delta 0.3, diff, 0.05
+ assert_operator 0.3, :<=, diff
}
end