From 4969b0ba2472791f5d7f995e3119d81534b8e792 Mon Sep 17 00:00:00 2001 From: geemus Date: Sun, 9 May 2010 11:24:07 -0700 Subject: [PATCH] [ec2] wait for volume to attach before calling detach in tests --- tests/aws/requests/ec2/volume_tests.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/aws/requests/ec2/volume_tests.rb b/tests/aws/requests/ec2/volume_tests.rb index 87804d832..15130427e 100644 --- a/tests/aws/requests/ec2/volume_tests.rb +++ b/tests/aws/requests/ec2/volume_tests.rb @@ -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