diff --git a/heat_integrationtests/scenario/test_autoscaling_lbv2.py b/heat_integrationtests/scenario/test_autoscaling_lbv2.py index b3a1842158..78cde531a7 100644 --- a/heat_integrationtests/scenario/test_autoscaling_lbv2.py +++ b/heat_integrationtests/scenario/test_autoscaling_lbv2.py @@ -46,6 +46,8 @@ class AutoscalingLoadBalancerv2Test(scenario_base.ScenarioTestsBase): # skip unsuccessful requests if r.status_code == 200: resp.add(r.text) + if len(resp) == expected_num: + break self.assertEqual(expected_num, len(resp)) def test_autoscaling_loadbalancer_neutron(self):