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

[ec2] fix race in describe_snapshots

This commit is contained in:
geemus 2010-04-30 14:43:06 -07:00
parent 4d544b8de5
commit 5e985cee65

View file

@ -5,6 +5,7 @@ describe 'EC2.describe_snapshots' do
before(:all) do
@volume_id = AWS[:ec2].create_volume('us-east-1a', 1).body['volumeId']
AWS[:ec2].volumes.get(@volume_id).wait_for { ready? }
@snapshot_id = AWS[:ec2].create_snapshot(@volume_id).body['snapshotId']
AWS[:ec2].snapshots.get(@snapshot_id).wait_for { ready? }
end