mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[ibm] Wait for volume to be ready before deleting
This commit is contained in:
parent
599166e86b
commit
e1d6cbfa79
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ Shindo.tests('Fog::Storage[:ibm] | volume requests', ['ibm']) do
|
|||
Fog::Compute[:ibm].delete_instance(@instance_id)
|
||||
end
|
||||
|
||||
Fog::Storage[:ibm].volumes.get(@volume_id).wait_for(Fog::IBM::TIMEOUT) { ready? }
|
||||
|
||||
tests("#delete_volume('#{@volume_id}')") do
|
||||
returns(true) { Fog::Storage[:ibm].delete_volume(@volume_id).body['success'] }
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue