From d6aeedda1d4d493c2b8cc6f9c56f57f08eb76959 Mon Sep 17 00:00:00 2001 From: spisarski Date: Mon, 16 Jul 2018 11:49:45 -0600 Subject: [PATCH] Cleaned up extra network created in the test test_set_one_port_two_ip_two_subnets() JIRA: SNAPS-323 Change-Id: I7610d7b3d2262b0f75c9620d2ec6907b62458158 Signed-off-by: spisarski --- snaps/openstack/tests/create_instance_tests.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/snaps/openstack/tests/create_instance_tests.py b/snaps/openstack/tests/create_instance_tests.py index 5ee6904..d278176 100644 --- a/snaps/openstack/tests/create_instance_tests.py +++ b/snaps/openstack/tests/create_instance_tests.py @@ -1426,6 +1426,14 @@ class CreateInstancePortManipulationTests(OSIntegrationTestCase): 'Unexpected exception cleaning network with message - %s', e) + if self.network_creator2: + try: + self.network_creator2.clean() + except Exception as e: + logger.error( + 'Unexpected exception cleaning network with message - %s', + e) + if self.image_creator and not self.image_creator.image_settings.exists: try: self.image_creator.clean() -- 2.16.6