From dfca0dd13426fa1e1fefd8dff32cdbd4c20f6c2d Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Thu, 5 Apr 2012 12:45:34 -0400 Subject: [PATCH] minor: disable refresh with threads for 1.8x --- test/replica_sets/refresh_with_threads_test.rb | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/test/replica_sets/refresh_with_threads_test.rb b/test/replica_sets/refresh_with_threads_test.rb index a690580..25204cb 100644 --- a/test/replica_sets/refresh_with_threads_test.rb +++ b/test/replica_sets/refresh_with_threads_test.rb @@ -14,6 +14,9 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase end def test_read_write_load_with_added_nodes + # MongoDB < 2.0 will disconnect clients on rs.reconfig() + return true if @rs.version.first < 2 + seeds = build_seeds(3) args = { :refresh_interval => 5, @@ -45,12 +48,7 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase end @rs.add_node - - begin - threads.each {|t| t.join } - rescue ConnectionFailure - # 1.8x will raise connection failures - end + threads.each {|t| t.join } @conn['admin'].command({:ismaster => 1})