Skip to content

Commit dfca0dd

Browse files
committed
minor: disable refresh with threads for 1.8x
1 parent 4f9acea commit dfca0dd

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

test/replica_sets/refresh_with_threads_test.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ def teardown
1414
end
1515

1616
def test_read_write_load_with_added_nodes
17+
# MongoDB < 2.0 will disconnect clients on rs.reconfig()
18+
return true if @rs.version.first < 2
19+
1720
seeds = build_seeds(3)
1821
args = {
1922
:refresh_interval => 5,
@@ -45,12 +48,7 @@ def test_read_write_load_with_added_nodes
4548
end
4649

4750
@rs.add_node
48-
49-
begin
50-
threads.each {|t| t.join }
51-
rescue ConnectionFailure
52-
# 1.8x will raise connection failures
53-
end
51+
threads.each {|t| t.join }
5452

5553
@conn['admin'].command({:ismaster => 1})
5654

0 commit comments

Comments
 (0)