* 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:
akr 2011-10-31 10:15:27 +00:00
Родитель b2a1af1547
Коммит c4dd8ca7b3
2 изменённых файлов: 8 добавлений и 2 удалений

Просмотреть файл

@ -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