spec/zk/pool_spec.rb in zk-1.6.1 vs spec/zk/pool_spec.rb in zk-1.6.2
- old
+ new
@@ -217,9 +217,10 @@
include_context 'connection opts'
before do
@min_clients = 1
@max_clients = 2
+ @timeout = 10
@connection_pool = ZK::Pool::Bounded.new(connection_host, :min_clients => @min_clients, :max_clients => @max_clients, :timeout => @timeout)
@connection_pool.should be_open
wait_until(2) { @connection_pool.available_size > 0 }
end