summaryrefslogtreecommitdiff
path: root/spec/ruby/core/threadgroup/add_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/threadgroup/add_spec.rb')
-rw-r--r--spec/ruby/core/threadgroup/add_spec.rb9
1 files changed, 4 insertions, 5 deletions
diff --git a/spec/ruby/core/threadgroup/add_spec.rb b/spec/ruby/core/threadgroup/add_spec.rb
index 5d1354e65f..2921c1ab22 100644
--- a/spec/ruby/core/threadgroup/add_spec.rb
+++ b/spec/ruby/core/threadgroup/add_spec.rb
@@ -1,15 +1,14 @@
require_relative '../../spec_helper'
-require_relative 'fixtures/classes'
describe "ThreadGroup#add" do
before :each do
- @chan1,@chan2 = Channel.new,Channel.new
- @thread = Thread.new { @chan1 << :go; @chan2.receive }
- @chan1.receive
+ @q1, @q2 = Queue.new, Queue.new
+ @thread = Thread.new { @q1 << :go; @q2.pop }
+ @q1.pop
end
after :each do
- @chan2 << :done
+ @q2 << :done
@thread.join
end