minor: testing fixes
This commit is contained in:
parent
2de3dcab94
commit
746687bb86
|
@ -108,6 +108,7 @@ class ReadPreferenceTest < Test::Unit::TestCase
|
||||||
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
||||||
end
|
end
|
||||||
@rs.restart_killed_nodes
|
@rs.restart_killed_nodes
|
||||||
|
sleep(1)
|
||||||
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
||||||
assert_equal 4, @coll.find.to_a.length
|
assert_equal 4, @coll.find.to_a.length
|
||||||
end
|
end
|
||||||
|
|
|
@ -50,6 +50,8 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
|
||||||
@rs.add_node
|
@rs.add_node
|
||||||
threads.each {|t| t.join }
|
threads.each {|t| t.join }
|
||||||
|
|
||||||
|
sleep(1)
|
||||||
|
|
||||||
@conn['admin'].command({:ismaster => 1})
|
@conn['admin'].command({:ismaster => 1})
|
||||||
|
|
||||||
assert_equal 3, @conn.secondary_pools.length
|
assert_equal 3, @conn.secondary_pools.length
|
||||||
|
|
Loading…
Reference in New Issue