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

rewrite the way model is waited in live tests

This commit is contained in:
A.S. Lomoff 2014-06-14 19:45:24 +03:00
parent 45193a7caf
commit 6d683ed00a

View file

@ -3,10 +3,7 @@ Shindo.tests("Fog::Compute[:google] | disk model", ['google']) do
model_tests(Fog::Compute[:google].disks, {:name => 'fog-disk-model-tests',
:zone => 'us-central1-a',
:size_gb => 10}) do |model|
Fog.wait_for do
model.reload
model.status != 'CREATING'
end
model.wait_for { ready? }
end
end