From 3585119dce92e1bbfe3196690734e82ae9a7c72a Mon Sep 17 00:00:00 2001 From: Brad Gignac Date: Fri, 14 Sep 2012 11:25:32 -0400 Subject: [PATCH] [rackspace|compute] Improve attachment test reliability. --- tests/rackspace/requests/compute_v2/attachment_tests.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/rackspace/requests/compute_v2/attachment_tests.rb b/tests/rackspace/requests/compute_v2/attachment_tests.rb index 43e957034..ce702b56a 100644 --- a/tests/rackspace/requests/compute_v2/attachment_tests.rb +++ b/tests/rackspace/requests/compute_v2/attachment_tests.rb @@ -43,14 +43,14 @@ Shindo.tests('Fog::Compute::RackspaceV2 | attachment_tests', ['rackspace']) do compute_service.list_attachments(server_id).body end - tests("#get_attachment(#{server_id}, #{volume_id})").formats(ATTACHMENT_FORMAT) do - compute_service.get_attachment(server_id, volume_id).body - end - until block_storage_service.get_volume(volume_id).body['volume']['status'] == 'in-use' sleep 10 end + tests("#get_attachment(#{server_id}, #{volume_id})").formats(ATTACHMENT_FORMAT) do + compute_service.get_attachment(server_id, volume_id).body + end + tests("#delete_attachment(#{server_id}, #{volume_id})").succeeds do compute_service.delete_attachment(server_id, volume_id) end