From 5c7e691e5de1fc0d9a8d7bc15cf45cb4a06d4452 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 24 Nov 2011 00:46:34 +0000 Subject: [PATCH] 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 --- test/ruby/test_thread.rb | 4 ++-- 1 file 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