Sha256: 1c6f58e7099b6fcf7f4d9189740c9d43f08696922c11bbb6025f3219c0fe1626

Contents?: true

Size: 433 Bytes

Versions: 7

Compression:

Stored size: 433 Bytes

Contents

require "spec_helper"

describe "Rapidly opening and closing lots of channels" do
  let(:connection) do
    c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed")
    c.start
    c
  end

  after :all do
    connection.close
  end

  it "works correctly" do
    xs = Array.new(2000) { connection.create_channel }

    xs.size.should == 2000
    xs.each do |ch|
      ch.close
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bunny-0.9.0.pre7 spec/higher_level_api/integration/channel_open_stress_spec.rb
bunny-0.9.0.pre6 spec/higher_level_api/integration/channel_open_stress_spec.rb
bunny-0.9.0.pre5 spec/higher_level_api/integration/channel_open_stress_spec.rb
bunny-0.9.0.pre4 spec/higher_level_api/integration/channel_open_stress_spec.rb
bunny-0.9.0.pre3 spec/higher_level_api/integration/channel_open_stress_spec.rb
bunny-0.9.0.pre2 spec/higher_level_api/integration/channel_open_stress_spec.rb
bunny-0.9.0.pre1 spec/higher_level_api/integration/channel_open_stress_spec.rb