Skip to content

Commit 640f1c0

Browse files
committed
minor: slave connect test fix
1 parent 391d37e commit 640f1c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/slave_connection_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ def self.connect_to_slave
1616
puts "Connected to slave; running slave tests."
1717

1818
def test_connect_to_slave
19-
assert_raise Mongo::ConfigurationError do
19+
assert_raise Mongo::ConnectionFailure do
2020
@db = Connection.new(@@host, @@port, :slave_ok => false).db('ruby-mongo-demo')
2121
end
2222
end
2323

2424
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?
25+
@con = Connection.new(@@host, @@port, :slave_ok => true)
26+
assert_equal true, @con.slave_ok?
2727
end
2828
else
2929
puts "Not connected to slave; skipping slave connection tests."

0 commit comments

Comments
 (0)