We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 391d37e commit 640f1c0Copy full SHA for 640f1c0
test/slave_connection_test.rb
@@ -16,14 +16,14 @@ def self.connect_to_slave
16
puts "Connected to slave; running slave tests."
17
18
def test_connect_to_slave
19
- assert_raise Mongo::ConfigurationError do
+ assert_raise Mongo::ConnectionFailure do
20
@db = Connection.new(@@host, @@port, :slave_ok => false).db('ruby-mongo-demo')
21
end
22
23
24
def test_slave_ok_sent_to_queries
25
- @db = Connection.new(@@host, @@port, :slave_ok => true).db('ruby-mongo-demo')
26
- assert_equal true, @db.slave_ok?
+ @con = Connection.new(@@host, @@port, :slave_ok => true)
+ assert_equal true, @con.slave_ok?
27
28
else
29
puts "Not connected to slave; skipping slave connection tests."
0 commit comments