spec/spec_09/connection_spec.rb in bunny-0.7.6 vs spec/spec_09/connection_spec.rb in bunny-0.7.8
- old
+ new
@@ -16,13 +16,13 @@
b.host.should eql("tagadab")
end
it "should be able to open a TCPSocket with a timeout" do
b = Bunny.new(:spec => "0.9")
- connect_timeout = 1
- lambda {
+ connect_timeout = 5
+ lambda {
Bunny::Timer::timeout(connect_timeout, Qrack::ConnectionTimeout) do
- TCPSocket.new(b.host, b.port)
+ TCPSocket.new(b.host, b.port)
end
}.should_not raise_error(Exception)
end
end