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
changes/73/431673/1
Ken'ichi Ohmichi 6 years ago
parent c2c27bb5e5
commit 02113d25bd

@ -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):

Loading…
Cancel
Save