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