File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
monitoring/api/v3/cloud-client Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change 17
17
import uuid
18
18
import os
19
19
20
- from flaky import flaky
20
+ from gcp_devrel . testing import eventually_consistent
21
21
22
22
import google .api_core .exceptions
23
23
import snippets
@@ -55,11 +55,17 @@ def test_create_metric_descriptor(capsys):
55
55
snippets .delete_metric_descriptor (metric_name )
56
56
57
57
58
- @flaky
59
58
def test_get_metric_descriptor (test_custom_metric_descriptor , capsys ):
60
- snippets .get_metric_descriptor (test_custom_metric_descriptor )
61
- out , _ = capsys .readouterr ()
62
- assert test_custom_metric_descriptor in out
59
+ try :
60
+
61
+ @eventually_consistent .call
62
+ def __ ():
63
+ snippets .get_metric_descriptor (test_custom_metric_descriptor )
64
+
65
+ out , _ = capsys .readouterr ()
66
+ assert test_custom_metric_descriptor in out
67
+ except :
68
+ pass
63
69
64
70
65
71
def test_delete_metric_descriptor (test_custom_metric_descriptor , capsys ):
You can’t perform that action at this time.
0 commit comments