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:
parent
bb9ef64e5b
commit
da7c77152d
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue