Skip to content

Commit

Permalink
minor: testing fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerBrock committed May 15, 2012
1 parent 2de3dca commit 746687b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/replica_sets/read_preference_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def test_kill_primary
@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
Expand Down
2 changes: 2 additions & 0 deletions test/replica_sets/refresh_with_threads_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ def test_read_write_load_with_added_nodes

@rs.add_node
threads.each {|t| t.join }

sleep(1)

@conn['admin'].command({:ismaster => 1})

Expand Down

0 comments on commit 746687b

Please sign in to comment.