From dfc70f09f9d0b54725afe2a46fa35d9ffa680e4d Mon Sep 17 00:00:00 2001 From: Ken'ichi Ohmichi Date: Thu, 9 Feb 2017 09:48:12 -0800 Subject: [PATCH] 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: Ie1ecf45962dafb8b46f1bd138a2d44521c8eff67 --- zaqar/tests/tempest_plugin/tests/v2/test_subscriptions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zaqar/tests/tempest_plugin/tests/v2/test_subscriptions.py b/zaqar/tests/tempest_plugin/tests/v2/test_subscriptions.py index 4000bf8..a2e355a 100644 --- a/zaqar/tests/tempest_plugin/tests/v2/test_subscriptions.py +++ b/zaqar/tests/tempest_plugin/tests/v2/test_subscriptions.py @@ -17,8 +17,8 @@ import json import uuid from tempest.common.utils import data_utils +from tempest.lib.common.utils import test_utils from tempest.lib import decorators -from tempest import test from zaqar.tests.tempest_plugin.tests import base @@ -134,7 +134,7 @@ class TestSubscriptions(base.BaseV2MessagingTest): message_body = self.generate_message_body() self.post_messages(queue_name=self.queue_name, rbody=message_body) - if not test.call_until_true( + if not test_utils.call_until_true( lambda: self.list_messages(sub_queue)[1]['messages'], 10, 1): self.fail("Couldn't get messages") _, body = self.list_messages(sub_queue)