Use Tempest TimeoutException from tempest.lib

TimeoutException was moved to tempest.lib.exceptions and
deleted from tempest.exceptions. This patch uses the up to date
location.

Change-Id: I0a563ac6e70795c277dd6be3d05ace92de72b46d
Closes-Bug: #1686468
(cherry picked from commit 659d222d45)
This commit is contained in:
Assaf Muller 2017-04-26 13:23:55 -04:00 committed by Nir Magnezi
parent 6ef1d1a9c7
commit 674e3604a6
1 changed files with 1 additions and 2 deletions

View File

@ -26,7 +26,6 @@ from six.moves.urllib import error
from six.moves.urllib import request as urllib2
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
@ -520,7 +519,7 @@ class BaseTestCase(manager.NetworkScenarioTest):
if (time.time() - start) > timeout:
message = ("Timed out trying to connect to {0}:{1} after "
"{2} seconds".format(check_ip, port, timeout))
raise exceptions.TimeoutException(message)
raise lib_exc.TimeoutException(message)
def _send_requests(self, vip_ip, servers):
counters = dict.fromkeys(servers, 0)