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})
|
||||
end
|
||||
@rs.restart_killed_nodes
|
||||
sleep(1)
|
||||
@coll.save({:a => 50}, :safe => {:w => 2, :wtimeout => 10000})
|
||||
assert_equal 4, @coll.find.to_a.length
|
||||
end
|
||||
|
|
|
@ -49,6 +49,8 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
|
|||
|
||||
@rs.add_node
|
||||
threads.each {|t| t.join }
|
||||
|
||||
sleep(1)
|
||||
|
||||
@conn['admin'].command({:ismaster => 1})
|
||||
|
||||
|
|
Loading…
Reference in New Issue