minor: testing fixes

This commit is contained in:
Tyler Brock 2012-05-15 15:41:24 -04:00
parent 2de3dcab94
commit 746687bb86
2 changed files with 3 additions and 0 deletions

View File

@ -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

View File

@ -49,6 +49,8 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase
@rs.add_node
threads.each {|t| t.join }
sleep(1)
@conn['admin'].command({:ismaster => 1})