Sha256: b1afa911381504f2768630986466d8c2be94665669da68a59afda2a85fd94410

Contents?: true

Size: 653 Bytes

Versions: 73

Compression:

Stored size: 653 Bytes

Contents

require "spec_helper"

unless ENV["CI"]
  describe "Rapidly opening and closing lots of channels on a non-threaded connection" do
    let(:connection) do
      c = Bunny.new(:user => "bunny_gem", :password => "bunny_password", :vhost => "bunny_testbed", :automatic_recovery => false, :threaded => false)
      c.start
      c
    end

    after :all do
      connection.close
    end

    context "in a single-threaded scenario" do
      let(:n) { 500 }

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

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

Version data entries

73 entries across 73 versions & 1 rubygems

Version Path
bunny-1.7.1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.7.0 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.3 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.2 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.0 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.5.1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.0.rc2 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.0.rc1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.6.0.pre1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.5.0 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.5.0.pre2 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.5.0.pre1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.4.1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.4.0 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.3.1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.3.0 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.2.2 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.2.1 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb
bunny-1.2.0 spec/stress/channel_open_stress_with_single_threaded_connection_spec.rb