summaryrefslogtreecommitdiff
path: root/test/-ext-/gvl
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-19 08:12:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-19 08:12:54 +0000
commitfdad97f66432d4b97de8a0dffc044790adf980f4 (patch)
tree137dbe9fb6941860d8f8b3fc7182b995bdbe47e1 /test/-ext-/gvl
parentcc144d1d5f52c91ac9e665e59cda325846183af6 (diff)
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-/gvl')
-rw-r--r--test/-ext-/gvl/test_last_thread.rb2
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 df25165b4b5..cf5f28f4b61 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