From 640f1c0ba5952c6d1a1c5472044d8940abd66164 Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 4 Aug 2010 18:12:25 -0400 Subject: [PATCH] minor: slave connect test fix --- test/slave_connection_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/slave_connection_test.rb b/test/slave_connection_test.rb index 50fcefc..429ea21 100644 --- a/test/slave_connection_test.rb +++ b/test/slave_connection_test.rb @@ -16,14 +16,14 @@ class SlaveConnectionTest < Test::Unit::TestCase puts "Connected to slave; running slave tests." def test_connect_to_slave - assert_raise Mongo::ConfigurationError do + assert_raise Mongo::ConnectionFailure do @db = Connection.new(@@host, @@port, :slave_ok => false).db('ruby-mongo-demo') end end def test_slave_ok_sent_to_queries - @db = Connection.new(@@host, @@port, :slave_ok => true).db('ruby-mongo-demo') - assert_equal true, @db.slave_ok? + @con = Connection.new(@@host, @@port, :slave_ok => true) + assert_equal true, @con.slave_ok? end else puts "Not connected to slave; skipping slave connection tests."