mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/resolv/test_dns.rb: don't check maximum sleeped time.
ruby doesn't guarantee the maximum time because it is not a realtime application. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b2a1af1547
commit
c4dd8ca7b3
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Mon Oct 31 19:14:11 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* test/resolv/test_dns.rb: don't check maximum sleeped time.
|
||||
ruby doesn't guarantee the maximum time because it is not a
|
||||
realtime application.
|
||||
|
||||
Mon Oct 31 13:10:06 2011 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||
|
||||
* win32/win32.c (setfl): extract from fcntl().
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue