Skip to content

Commit b638c8c

Browse files
docs: Added retry to DetectIT sample test (#785)
* Added retry to DetectIT test * docs: Added retry to DetectIT sample test * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 3881962 commit b638c8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

video/src/test/java/beta/video/DetectIT.java

+4
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import static com.google.common.truth.Truth.assertThat;
2020

21+
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
2122
import com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation;
2223
import com.google.cloud.videointelligence.v1p2beta1.TextAnnotation;
2324
import com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults;
@@ -29,6 +30,7 @@
2930
import org.junit.After;
3031
import org.junit.Assert;
3132
import org.junit.Before;
33+
import org.junit.Rule;
3234
import org.junit.Test;
3335
import org.junit.runner.RunWith;
3436
import org.junit.runners.JUnit4;
@@ -57,6 +59,8 @@ public class DetectIT {
5759
private PrintStream out;
5860
private PrintStream originalPrintStream;
5961

62+
@Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3);
63+
6064
@Before
6165
public void setUp() {
6266
bout = new ByteArrayOutputStream();

0 commit comments

Comments
 (0)