The pending block fails the outer one => make sure we return proper result

This commit is contained in:
Bohuslav Kabrda 2012-07-02 13:01:38 +02:00
parent fbf202f7c7
commit 0791366a1b
1 changed files with 2 additions and 1 deletions

View File

@ -30,11 +30,12 @@ Shindo.tests('Fog::Compute[:hp] | address requests', [:hp]) do
@server.wait_for { ready? }
tests("#associate_address('#{@server.id}', '#{@ip_address}')").succeeds do
Fog::Compute[:hp].associate_address(@server.id, @ip_address)
result = Fog::Compute[:hp].associate_address(@server.id, @ip_address)
tests("#get_address").returns(@server.id, "associated to valid instance id") do
pending if Fog.mocking?
Fog::Compute[:hp].get_address(@address_id).body['floating_ip']['instance_id']
end
result
end
tests("#disassociate_address('#{@server.id}', '#{@ip_address}')").succeeds do