From e748d175c2db3540d8f575cf8323dae2cd60a15a Mon Sep 17 00:00:00 2001 From: Dylan Egan Date: Fri, 8 Jul 2011 14:31:29 -0700 Subject: [PATCH] Wait for volume to be ready again. --- tests/compute/models/aws/volume_tests.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/compute/models/aws/volume_tests.rb b/tests/compute/models/aws/volume_tests.rb index e9beceac8..7e3bff0bc 100644 --- a/tests/compute/models/aws/volume_tests.rb +++ b/tests/compute/models/aws/volume_tests.rb @@ -21,6 +21,8 @@ Shindo.tests("Fog::Compute[:aws] | volume", ['aws']) do @instance.server = nil end + @instance.wait_for { ready? } + @instance.server = @server @instance.wait_for { state == 'in-use' }