Sha256: 40f57fd190cf51805f77e07af5d8f75baad57783fb0b6192e4211d16c4eadc1e
Contents?: true
Size: 949 Bytes
Versions: 10
Compression:
Stored size: 949 Bytes
Contents
require "spec_helper" unless RUBY_ENGINE == "jruby" && !ENV["FORCE_JRUBY_RUN"] describe Bunny::Session do # creating thousands of connections means creating # twice as many threads and this won't fly with the JVM # in CI containers. MK. n = if RUBY_ENGINE == "jruby" 250 else 2500 end n.times do |i| it "can be closed (take #{i})" do c = Bunny.new(:automatically_recover => false) c.start ch = c.create_channel c.should be_connected c.stop c.should be_closed end end context "in the single threaded mode" do n.times do |i| it "can be closed (take #{i})" do c = Bunny.new(:automatically_recover => false, :threaded => false) c.start ch = c.create_channel c.should be_connected c.stop c.should be_closed end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems