diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-30 20:28:31 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-08-30 20:28:31 +0000 |
commit | c45ad62966891edb6180f7b0ed068f12c96642f0 (patch) | |
tree | e05639ff0cf1e68181d202d641b3e22b98f7988c /test | |
parent | c8473b46ae096e1e2cc2b377a19f9735ff56c598 (diff) |
merge revision(s) 33131:
* test/-ext-/old_thread_select/test_old_thread_select.rb
(TestOldThreadSelect#test_old_select_read_timeout): if the machine
is fast enough, the time used by code around IO.select may be smaller
than Time implement threshold.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/-ext-/old_thread_select/test_old_thread_select.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/-ext-/old_thread_select/test_old_thread_select.rb b/test/-ext-/old_thread_select/test_old_thread_select.rb index d965724c83..a7db7bdf99 100644 --- a/test/-ext-/old_thread_select/test_old_thread_select.rb +++ b/test/-ext-/old_thread_select/test_old_thread_select.rb @@ -19,7 +19,7 @@ class TestOldThreadSelect < Test::Unit::TestCase rc = IO.old_thread_select([r.fileno], nil, nil, 0.001) diff = Time.now - t0 assert_equal 0, rc - assert diff > 0.001, "returned too early" + assert diff >= 0.001, "returned too early" end end |