1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/core/timeout_tests.rb
Paul Thornthwaite 43c4531763 [core] Make the wait timeout truly global
The Rackspace helper changed the Fog.timeout global for all live tests
so the core test which expected "600" failed since it was now "2000"

Since it is a global setting it has been moved to the global test helper

It can now also be controlled by the FOG_TEST_TIMEOUT env variable.
2014-02-19 09:37:25 +00:00

10 lines
202 B
Ruby

Shindo.tests('Fog#timeout', 'core') do
tests('timeout').returns(FOG_TESTING_TIMEOUT) do
Fog.timeout
end
tests('timeout = 300').returns(300) do
Fog.timeout = 300
Fog.timeout
end
end