From 794cf5c1ffc6a1b1dd7f69390c2574c5c214afc2 Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Mon, 26 Sep 2016 15:56:43 +0200 Subject: [PATCH] Speed up environment test Getting all the types from the environment is somewhat slow, so let's filter them by name, it will make the test quicker and don't change the semantics. Change-Id: I803d027ad74671caec3589a7cdfd5a032cc1f17f --- heat/tests/test_environment.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/heat/tests/test_environment.py b/heat/tests/test_environment.py index add7fcb4a3..55d761649b 100644 --- a/heat/tests/test_environment.py +++ b/heat/tests/test_environment.py @@ -844,7 +844,8 @@ class ResourceRegistryTest(common.HeatTestCase): generic_resource.GenericResource, 'is_service_available', side_effect=exception.ClientNotAvailable(client_name='generic')) - types = registry.get_types(utils.dummy_context()) + types = registry.get_types(utils.dummy_context(), + type_name='GenericResourceType') self.assertNotIn('GenericResourceType', types) def test_list_type_with_invalid_type_name(self):