From 043590f9a3e8d257abc245184d05f8066735029f Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Wed, 13 Apr 2011 14:39:52 -0400 Subject: [PATCH] minor: test replica set connect with reverse node order --- test/replica_sets/connect_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/replica_sets/connect_test.rb b/test/replica_sets/connect_test.rb index 678f07d..0c7ff5c 100644 --- a/test/replica_sets/connect_test.rb +++ b/test/replica_sets/connect_test.rb @@ -37,6 +37,10 @@ class ConnectTest < Test::Unit::TestCase assert_equal RS.primary, @conn.primary assert_equal RS.secondaries.sort, @conn.secondaries.sort assert_equal RS.arbiters.sort, @conn.arbiters.sort + + @conn = ReplSetConnection.new([RS.host, RS.ports[1]], [RS.host, RS.ports[0]], + :name => RS.name) + assert @conn.connected? end def test_host_port_accessors