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

[rackspace|compute_v2] fixing broken test

This commit is contained in:
Kyle Rames 2013-08-15 15:51:52 -05:00
parent 039d424f97
commit 308aed0bd1

View file

@ -106,11 +106,7 @@ Shindo.tests('Fog::Compute::RackspaceV2 | server_tests', ['rackspace']) do
sleep 120 unless Fog.mocking?
tests('#resize_server').succeeds do
if Fog.mocking?
resize_flavor_id = flavor_id
else
resize_flavor_id = service.flavors[1]
end
resize_flavor_id = Fog.mocking? ? flavor_id : service.flavors[1].id
service.resize_server(server_id, resize_flavor_id)
end
wait_for_server_state(service, server_id, 'VERIFY_RESIZE', 'ACTIVE')