diff options
author | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-15 22:58:25 +0000 |
---|---|---|
committer | headius <headius@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-15 22:58:25 +0000 |
commit | da7c77152d8a0021866b671fcce1113dece1e440 (patch) | |
tree | 47f4cfaa534dd06afd465019ae497b8fba3e7a03 /test/thread | |
parent | bb9ef64e5b7c1956040c6c2339ffc0cf37714b60 (diff) |
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
Diffstat (limited to 'test/thread')
-rw-r--r-- | test/thread/test_queue.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/thread/test_queue.rb b/test/thread/test_queue.rb index 7ab6d1e01e..0a1ae48387 100644 --- a/test/thread/test_queue.rb +++ b/test/thread/test_queue.rb @@ -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 |