minor: test replica set connect with reverse node order

This commit is contained in:
Kyle Banker 2011-04-13 14:39:52 -04:00
parent bfbc71e60f
commit 043590f9a3

View File

@ -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