Skip to content

Commit 377ad30

Browse files
committed
changed wait code to wait until its enabled
1 parent ad7f6ef commit 377ad30

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/integration/models/monitor/test_monitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ def wait_for_alert_ready(alert_id, service_type: str):
229229
alert = client.load(AlertDefinition, alert_id, service_type)
230230
while (
231231
getattr(alert, "status", None)
232-
== AlertStatus.AlertDefinitionStatusEnabling
232+
!= AlertStatus.AlertDefinitionStatusEnabled
233233
and (time.time() - start) < timeout
234234
):
235235
time.sleep(interval)

0 commit comments

Comments
 (0)