From 746687bb86bae857413334d71a023d28504a0c20 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Tue, 15 May 2012 15:41:24 -0400 Subject: [PATCH] minor: testing fixes --- test/replica_sets/read_preference_test.rb | 1 + test/replica_sets/refresh_with_threads_test.rb | 2 ++ 2 files changed, 3 insertions(+) diff --git a/test/replica_sets/read_preference_test.rb b/test/replica_sets/read_preference_test.rb index ff1c62f..8df640c 100644 --- a/test/replica_sets/read_preference_test.rb +++ b/test/replica_sets/read_preference_test.rb @@ -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 diff --git a/test/replica_sets/refresh_with_threads_test.rb b/test/replica_sets/refresh_with_threads_test.rb index 25204cb..8356872 100644 --- a/test/replica_sets/refresh_with_threads_test.rb +++ b/test/replica_sets/refresh_with_threads_test.rb @@ -49,6 +49,8 @@ class ReplicaSetRefreshWithThreadsTest < Test::Unit::TestCase @rs.add_node threads.each {|t| t.join } + + sleep(1) @conn['admin'].command({:ismaster => 1})