1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00

fix inverted test timeout logic

This commit is contained in:
Josh Lane 2015-05-08 14:11:58 -07:00
parent c48dd760a9
commit 39abf370a4

View file

@ -14,8 +14,8 @@ Excon.defaults.merge!(:debug_request => true, :debug_response => true)
require File.expand_path(File.join(File.dirname(__FILE__), 'helpers', 'mock_helper'))
# This overrides the default 600 seconds timeout during live test runs
if Fog.mocking?
Fog.timeout = ENV['FOG_TEST_TIMEOUT'] || 2000
unless Fog.mocking?
Fog.timeout = ENV['FOG_TEST_TIMEOUT'] || 2_000
Fog::Logger.warning "Setting default fog timeout to #{Fog.timeout} seconds"
end