Switch to use test_utils.call_until_true

test.call_until_true has been deprecated since Newton on Tempest side,
and now Tempest provides test_utils.call_until_true as the stable
library method. So this patch switches to use the stable method before
removing old test.call_until_true on Tempest side.

Change-Id: I5e82466f6eb7b164042406813b1ad72a1cbb05fa
This commit is contained in:
Ken'ichi Ohmichi 2017-02-09 10:04:02 -08:00
parent c2c27bb5e5
commit 02113d25bd
1 changed files with 2 additions and 2 deletions

View File

@ -18,8 +18,8 @@ import time
import tempest
from tempest import config
from tempest.lib.common.api_version_utils import LATEST_MICROVERSION
from tempest.lib.common.utils import test_utils
from tempest.lib import exceptions as lib_exc
from tempest import test
from ironic_inspector.test.inspector_tempest_plugin import exceptions
from ironic_inspector.test.inspector_tempest_plugin.services import \
@ -152,7 +152,7 @@ class InspectorScenarioTest(BaremetalScenarioTest):
return False
return True
if not test.call_until_true(
if not test_utils.call_until_true(
check_node,
duration=CONF.baremetal_introspection.discovery_timeout,
sleep_for=20):