1
0
Fork 0
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:
Decklin Foster 2012-03-14 10:54:03 -04:00
parent 599166e86b
commit e1d6cbfa79

View file

@ -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