Fix create_audit
If audit failed , sleep 5s before recreating. Change-Id: Id6ee614d9d9882053736793a98ee902ef0e8874a
This commit is contained in:
parent
bb2a7ab78f
commit
d58ad14111
@ -15,6 +15,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import functools
|
||||
import time
|
||||
|
||||
from tempest.lib.common.utils import data_utils
|
||||
from tempest.lib.common.utils import test_utils
|
||||
@ -208,6 +209,7 @@ class BaseInfraOptimTest(test.BaseTestCase):
|
||||
if cls.has_audit_failed(audit_uuid):
|
||||
audit_success = False
|
||||
cls.delete_audit(audit_uuid)
|
||||
time.sleep(5)
|
||||
else:
|
||||
audit_success = True
|
||||
retry -= 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user