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