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

Remove this test, since it won't reliably pass.

At the point where q.size == 0, we can't know that num_threads
threads have actually finished. On e.g. JRuby, they may have
called pop but not yet exited the Thread's body.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
headius 2015-12-15 22:58:25 +00:00
parent bb9ef64e5b
commit da7c77152d

View file

@ -307,10 +307,7 @@ class TestQueue < Test::Unit::TestCase
# wait until queue empty
(Thread.pass; sleep 0.01) until q.size == 0
# now there should be some waiting consumers
assert_equal num_threads - num_items, threads.count{|thr| thr.status}
# tell them all to go away
# close the queue so remaining threads will wake up
q.close
# wait for them to go away