Skip to content

Commit 2a2a7b2

Browse files
Takashi Matsuobusunkim96
authored andcommitted
[container-registry] fix: mark a flaky test [(#3765)](GoogleCloudPlatform/python-docs-samples#3765)
fixes #2894
1 parent db3d22d commit 2a2a7b2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/google-cloud-containeranalysis/samples/snippets/samples_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from grafeas.grafeas_v1.gapic.enums import NoteKind
3030
from grafeas.grafeas_v1.gapic.enums import Severity
3131
from grafeas.grafeas_v1.gapic.enums import Version
32+
import pytest
3233

3334
import samples
3435

@@ -145,6 +146,7 @@ def test_occurrences_for_note(self):
145146
# clean up
146147
samples.delete_occurrence(basename(occ.name), PROJECT_ID)
147148

149+
@pytest.mark.flaky(max_runs=3, min_passes=1)
148150
def test_pubsub(self):
149151
# create topic if needed
150152
client = SubscriberClient()

0 commit comments

Comments
 (0)