Skip to content

Commit 057ceec

Browse files
Takashi Matsuobusunkim96
Takashi Matsuo
authored andcommitted
[container-registry] fix: mark a flaky test [(#3765)](#3765)
fixes #2894
1 parent 133a429 commit 057ceec

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

container_registry/container_analysis/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)