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

Commit eea5c8e

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)