Skip to content

Commit 7e5215f

Browse files
authored
chore: increase wait time for custom metric to reduce flakiness (#6268)
Fixes #6248 This PR is an attempt to fix #6248
1 parent a0eb379 commit 7e5215f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

monitoring/api/v3/api-client/custom_metric_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ def custom_metric(client):
6363
custom_metric_descriptor = create_custom_metric(
6464
client, PROJECT_RESOURCE, METRIC_RESOURCE, METRIC_KIND)
6565

66-
# wait until metric has been created, use the get call to wait until
67-
# a response comes back with the new metric with 10 retries.
66+
# Wait up to 50 seconds until metric has been created. Use the get call
67+
# to wait until a response comes back with the new metric with 10 retries.
6868
custom_metric = None
6969
retry_count = 0
7070
while not custom_metric and retry_count < 10:
71-
time.sleep(1)
71+
time.sleep(5)
7272
retry_count += 1
7373
custom_metric = get_custom_metric(
7474
client, PROJECT_RESOURCE, METRIC_RESOURCE)

0 commit comments

Comments
 (0)