mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* test/thread/test_queue.rb: catch up last commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c37c67cef8
commit
7ef01f83ac
2 changed files with 6 additions and 2 deletions
|
@ -509,11 +509,11 @@ class TestQueue < Test::Unit::TestCase
|
|||
[->{Queue.new}, ->{SizedQueue.new 3}].each do |qcreate|
|
||||
q = qcreate[]
|
||||
q.close
|
||||
assert_raise(ClosedQueueError){q.close}
|
||||
assert_nothing_raised(ClosedQueueError){q.close}
|
||||
|
||||
q = qcreate[]
|
||||
q.close(true)
|
||||
assert_raise(ClosedQueueError){q.close(false)}
|
||||
assert_nothing_raised(ClosedQueueError){q.close(false)}
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue