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:
parent
c1442ad780
commit
4969b0ba24
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue