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

Commit c73dbad

Browse files
authored
switch to regular flaky in monitoring [(#3333)](GoogleCloudPlatform/python-docs-samples#3333)
* switch to regular flaky * minor assertion adjustment * address nit
1 parent 0f9a14f commit c73dbad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

samples/snippets/v3/api-client/custom_metric_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import time
2626

2727
from gcp_devrel.testing import eventually_consistent
28-
from gcp_devrel.testing.flaky import flaky
28+
from flaky import flaky
2929
import googleapiclient.discovery
3030
import pytest
3131

samples/snippets/v3/api-client/list_resources_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import os
2424
import re
2525

26-
from gcp_devrel.testing.flaky import flaky
26+
from flaky import flaky
2727
import googleapiclient.discovery
2828
import pytest
2929

@@ -56,7 +56,7 @@ def test_list_metrics(client, capsys):
5656
client, PROJECT_RESOURCE, METRIC)
5757
stdout, _ = capsys.readouterr()
5858
regex = re.compile(
59-
u'Delta CPU', re.I)
59+
u'Delta', re.I)
6060
assert regex.search(stdout) is not None
6161

6262

0 commit comments

Comments
 (0)