minor: disable refresh with threads for 1.8x
This commit is contained in:
parent
4f9aceacf4
commit
dfca0dd134
@ -14,6 +14,9 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_read_write_load_with_added_nodes
|
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)
|
seeds = build_seeds(3)
|
||||||
args = {
|
args = {
|
||||||
:refresh_interval => 5,
|
:refresh_interval => 5,
|
||||||
@ -45,12 +48,7 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
@rs.add_node
|
@rs.add_node
|
||||||
|
threads.each {|t| t.join }
|
||||||
begin
|
|
||||||
threads.each {|t| t.join }
|
|
||||||
rescue ConnectionFailure
|
|
||||||
# 1.8x will raise connection failures
|
|
||||||
end
|
|
||||||
|
|
||||||
@conn['admin'].command({:ismaster => 1})
|
@conn['admin'].command({:ismaster => 1})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user