spec/support/test_client.rb in riak-client-2.4.1 vs spec/support/test_client.rb in riak-client-2.5.0
- old
+ new
@@ -24,10 +24,10 @@
config_path = File.expand_path '../test_client.yml', __FILE__
config = YAML.load_file(config_path).symbolize_keys
rescue Errno::ENOENT => ex
$stderr.puts("WARNING: could not find file: #{config_path}, exception: #{ex}")
config = {}
- config[:pb_port] = 10017
+ config[:pb_port] = ENV['RIAK_PORT'] || 10017
end
if config[:nodes]
new_nodes = config[:nodes].map(&:symbolize_keys)
config[:nodes] = new_nodes