From 4fd2647e21b8a53e259542c1ee86f8f685e32c20 Mon Sep 17 00:00:00 2001 From: Adam Harwell Date: Tue, 18 Apr 2017 08:09:19 +0900 Subject: [PATCH] Scenario base uses the wrong exception lib Change-Id: I74f8537a3886a41d81097fb42bb55f116f1b3dd5 --- octavia/tests/tempest/v1/scenario/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/octavia/tests/tempest/v1/scenario/base.py b/octavia/tests/tempest/v1/scenario/base.py index c3f8817e7d..bac50bb7fe 100644 --- a/octavia/tests/tempest/v1/scenario/base.py +++ b/octavia/tests/tempest/v1/scenario/base.py @@ -33,7 +33,6 @@ from six.moves.urllib import request as urllib2 from tempest.common import credentials_factory from tempest.common import waiters from tempest import config -from tempest import exceptions from tempest.lib.common.utils import test_utils from tempest.lib import exceptions as lib_exc from tempest import test @@ -644,7 +643,7 @@ class BaseTestCase(manager.NetworkScenarioTest): while not try_connect(check_ip, port): if (time.time() - start) > timeout: message = "Timed out trying to connect to %s" % check_ip - raise exceptions.TimeoutException(message) + raise lib_exc.TimeoutException(message) time.sleep(1) def _send_requests(self, vip_ip, path=''):