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

[ec2] wait for volume to attach before calling detach in tests

This commit is contained in:
geemus 2010-05-09 11:24:07 -07:00
parent c1442ad780
commit 4969b0ba24

View file

@ -29,6 +29,7 @@ Shindo.tests('AWS::EC2 | volume requests', ['aws']) do
end
test("#detach_volume('#{@volume_id}')") do
AWS[:ec2].volumes.get(@volume_id).wait_for { state == 'attached' }
@data = AWS[:ec2].detach_volume(@volume_id).body
has_format(@data, AWS::EC2::Formats::VOLUME_ATTACHMENT)
end