Skip to content

Commit

Permalink
minor: disable refresh with threads for 1.8x
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed Apr 5, 2012
1 parent 4f9acea commit dfca0dd
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions test/replica_sets/refresh_with_threads_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ def teardown
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,
Expand Down Expand Up @@ -45,12 +48,7 @@ def test_read_write_load_with_added_nodes
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})

Expand Down

0 comments on commit dfca0dd

Please sign in to comment.