Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Commit

Permalink
Reset global connection pool on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurnn committed Oct 29, 2013
1 parent e2dec51 commit 68a456b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@
return true if value == :auth && !Support::MongoHQ.auth_node_configured?
end

config.before :each do
Moped::Connection::Manager.instance_variable_set(:@pools, {})
end

unless Support::MongoHQ.replica_set_configured? || Support::MongoHQ.auth_node_configured?
$stderr.puts Support::MongoHQ.message
end
Expand Down

0 comments on commit 68a456b

Please sign in to comment.