From fa8c9bbd3ad9bdde4720d8bbd5f676b7ea51a677 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Tue, 22 Jun 2010 15:54:50 -0700 Subject: [PATCH] Add a little more time to a connection pool spec to reduce false negatives --- spec/core/connection_pool_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/core/connection_pool_spec.rb b/spec/core/connection_pool_spec.rb index 8d94cc0db6..469be7fd0f 100644 --- a/spec/core/connection_pool_spec.rb +++ b/spec/core/connection_pool_spec.rb @@ -96,7 +96,7 @@ specify "#hold should remove the connection if a DatabaseDisconnectError is raised" do @cpool.created_count.should == 0 - @cpool.hold{Thread.new{@cpool.hold{}}; sleep 0.02} + @cpool.hold{Thread.new{@cpool.hold{}}; sleep 0.03} @cpool.created_count.should == 2 proc{@cpool.hold{raise Sequel::DatabaseDisconnectError}}.should raise_error(Sequel::DatabaseDisconnectError) @cpool.created_count.should == 1