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:
parent
45193a7caf
commit
6d683ed00a
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue