1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

increase difference of priority to avoid false nagative test result.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33824 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-11-24 00:46:34 +00:00
parent c8abe4a054
commit 5c7e691e5d

View file

@ -232,10 +232,10 @@ class TestThread < Test::Unit::TestCase
def test_priority
c1 = c2 = 0
t1 = Thread.new { loop { c1 += 1 } }
t1.priority = -1
t1.priority = 3
t2 = Thread.new { loop { c2 += 1 } }
t2.priority = -3
assert_equal(-1, t1.priority)
assert_equal(3, t1.priority)
assert_equal(-3, t2.priority)
sleep 0.5
5.times do