Permalink
Browse files

Add a little more time to a connection pool spec to reduce false nega…

…tives
  • Loading branch information...
1 parent dc1ac38 commit fa8c9bbd3ad9bdde4720d8bbd5f676b7ea51a677 @jeremyevans committed Jun 22, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit fa8c9bb

Please sign in to comment.