From 0791366a1b4ee232f4f010e9a4fb119319b5fd9f Mon Sep 17 00:00:00 2001 From: Bohuslav Kabrda Date: Mon, 2 Jul 2012 13:01:38 +0200 Subject: [PATCH] The pending block fails the outer one => make sure we return proper result --- tests/hp/requests/compute/address_tests.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/hp/requests/compute/address_tests.rb b/tests/hp/requests/compute/address_tests.rb index 6dbfffb86..40ae9330d 100644 --- a/tests/hp/requests/compute/address_tests.rb +++ b/tests/hp/requests/compute/address_tests.rb @@ -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