spec/support/cluster_tools.rb
# Resets priorities on all replica set members to 1.
#
# Use at the end of a test run.
Resets priorities on all replica set members to 1.
Use at the end of a test run.
Resets priorities on all replica set members to 1 . Use at the end of a test run .
def reset_priorities
    cfg = get_rs_config
    cfg['members'].each do |member|
      member['priority'] = 1
    end
    set_rs_config(cfg)
  end
def reset_priorities cfg = get_rs_config cfg [ 'members' ] . each do | member | member [ 'priority' ] = 1 end set_rs_config ( cfg ) end
Resets priorities on all replica set members to 1.
Resets priorities on all replica set members to 1 .