Skip to content
This repository has been archived by the owner on Dec 31, 2023. It is now read-only.

Commit

Permalink
switch to regular flaky in monitoring [(#3333)](GoogleCloudPlatform/p…
Browse files Browse the repository at this point in the history
…ython-docs-samples#3333)

* switch to regular flaky

* minor assertion adjustment

* address nit
  • Loading branch information
leahecole authored Apr 10, 2020
1 parent 0f9a14f commit c73dbad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/snippets/v3/api-client/custom_metric_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import time

from gcp_devrel.testing import eventually_consistent
from gcp_devrel.testing.flaky import flaky
from flaky import flaky
import googleapiclient.discovery
import pytest

Expand Down
4 changes: 2 additions & 2 deletions samples/snippets/v3/api-client/list_resources_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import os
import re

from gcp_devrel.testing.flaky import flaky
from flaky import flaky
import googleapiclient.discovery
import pytest

Expand Down Expand Up @@ -56,7 +56,7 @@ def test_list_metrics(client, capsys):
client, PROJECT_RESOURCE, METRIC)
stdout, _ = capsys.readouterr()
regex = re.compile(
u'Delta CPU', re.I)
u'Delta', re.I)
assert regex.search(stdout) is not None


Expand Down

0 comments on commit c73dbad

Please sign in to comment.