We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cacc0c7 commit 03a820fCopy full SHA for 03a820f
monitoring/api/v3/cloud-client/snippets_test.py
@@ -16,6 +16,7 @@
16
import re
17
18
import backoff
19
+from google.api_core.exceptions import InternalServerError
20
from google.api_core.exceptions import NotFound
21
import pytest
22
@@ -42,7 +43,12 @@ def custom_metric_descriptor(capsys):
42
43
44
@pytest.fixture(scope="module")
45
def write_time_series():
- snippets.write_time_series(PROJECT_ID)
46
+
47
+ @backoff.on_exception(backoff.expo, InternalServerError, max_time=120)
48
+ def write():
49
+ snippets.write_time_series(PROJECT_ID)
50
51
+ write()
52
yield
53
54
0 commit comments