From e21adbd781e91f93f48d4f33d2b13dcb0c53f530 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Mon, 13 Feb 2012 19:21:11 -0500 Subject: [PATCH] minor: possible fix for replica set refresh test not passing due to ghost members --- test/replica_sets/refresh_test.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/replica_sets/refresh_test.rb b/test/replica_sets/refresh_test.rb index 23f0292..0359387 100644 --- a/test/replica_sets/refresh_test.rb +++ b/test/replica_sets/refresh_test.rb @@ -6,7 +6,6 @@ class ReplicaSetRefreshTest < Test::Unit::TestCase def setup ensure_rs - @conn = nil end def teardown @@ -41,6 +40,7 @@ class ReplicaSetRefreshTest < Test::Unit::TestCase def test_connect_and_manual_refresh_with_secondaries_down @rs.kill_all_secondaries + sleep(4) rescue_connection_failure do @conn = ReplSetConnection.new([@rs.host, @rs.ports[0]], @@ -72,7 +72,8 @@ class ReplicaSetRefreshTest < Test::Unit::TestCase def test_automated_refresh_with_secondaries_down @rs.kill_all_secondaries - + sleep(4) + rescue_connection_failure do @conn = ReplSetConnection.new([@rs.host, @rs.ports[0]], [@rs.host, @rs.ports[1]],