diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-19 08:12:54 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-06-19 08:12:54 +0000 |
commit | bb6b24f9ccd4b7f1c5cb8b1b6e1a4b15e5211374 (patch) | |
tree | 137dbe9fb6941860d8f8b3fc7182b995bdbe47e1 /test/-ext- | |
parent | d0c3d1029ab5d7dcb747095143f44adce60bb31b (diff) | |
download | ruby-bb6b24f9ccd4b7f1c5cb8b1b6e1a4b15e5211374.tar.gz |
test_last_thread.rb: relax
* test/-ext-/gvl/test_last_thread.rb (test_last_thread): allow low
resolution sleep.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/-ext-')
-rw-r--r-- | test/-ext-/gvl/test_last_thread.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/-ext-/gvl/test_last_thread.rb b/test/-ext-/gvl/test_last_thread.rb index df25165b4b..cf5f28f4b6 100644 --- a/test/-ext-/gvl/test_last_thread.rb +++ b/test/-ext-/gvl/test_last_thread.rb @@ -15,7 +15,7 @@ class TestLastThread < Test::Unit::TestCase t1 = Time.now t = t1 - t0 - assert_operator(t, :>=, 1) + assert_in_delta(1.0, t, 0.16) end; end end |