aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-24 00:46:34 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-24 00:46:34 +0000
commit5c7e691e5de1fc0d9a8d7bc15cf45cb4a06d4452 (patch)
tree6d7fbb8b8826a873f80e6bb20a86f9191614362f
parentc8abe4a054e605dd6e73c0725c4f4d3c59440aa6 (diff)
downloadruby-5c7e691e5de1fc0d9a8d7bc15cf45cb4a06d4452.tar.gz
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
-rw-r--r--test/ruby/test_thread.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_thread.rb b/test/ruby/test_thread.rb
index 0cd20ba1e5..0809533f14 100644
--- a/test/ruby/test_thread.rb
+++ b/test/ruby/test_thread.rb
@@ -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