Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit a73c15c

Browse filesBrowse files
author
Jon Wayne Parrott
committed
De-flake metric test
1 parent 59a52de commit a73c15c
Copy full SHA for a73c15c

File tree

Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-1
lines changed

‎monitoring/api/v3/cloud-client/snippets_test.py

Copy file name to clipboardExpand all lines: monitoring/api/v3/cloud-client/snippets_test.py
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@
1313
# limitations under the License.
1414

1515
import snippets
16+
from gcp.testing import eventually_consistent
1617

1718

1819
def test_create_get_delete_metric_descriptor(capsys):
1920
snippets.create_metric_descriptor()
20-
snippets.get_metric_descriptor('custom.googleapis.com/my_metric')
21+
22+
@eventually_consistent.call
23+
def __():
24+
snippets.get_metric_descriptor('custom.googleapis.com/my_metric')
25+
2126
out, _ = capsys.readouterr()
2227
assert 'DOUBLE' in out
2328
snippets.delete_metric_descriptor('custom.googleapis.com/my_metric')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.