Ensure waiters do not stuck when timeout is reached
Related-Prod: PRODX-3456
Change-Id: Ief32a3d4f1e4597624b23ec4c2bafa63b93ac34f
diff --git a/octavia_tempest_plugin/tests/waiters.py b/octavia_tempest_plugin/tests/waiters.py
index e0d9d2d..f00a1eb 100644
--- a/octavia_tempest_plugin/tests/waiters.py
+++ b/octavia_tempest_plugin/tests/waiters.py
@@ -78,7 +78,7 @@
message=message)
if not error_ok:
raise exceptions.UnexpectedResponseCode(message)
- elif int(time.time()) - start >= check_timeout:
+ if int(time.time()) - start >= check_timeout:
message = (
'{name} {field} failed to update to {expected_status} within '
'the required time {timeout}. Current status of {name}: '
@@ -165,7 +165,7 @@
LOG.info('{name}\'s status updated to DELETED.'.format(
name=show_client.__name__))
return
- elif int(time.time()) - start >= check_timeout:
+ if int(time.time()) - start >= check_timeout:
message = (
'{name} {field} failed to update to DELETED or become not '
'found (404) within the required time {timeout}. Current '