Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
docs: Added retry to DetectIT sample test (#785)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kweinmeister and gcf-owl-bot[bot] committed Jan 25, 2022
1 parent 05ed7cd commit a1fabaf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions samples/snippets/src/test/java/beta/video/DetectIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

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

import com.google.cloud.testing.junit4.MultipleAttemptsRule;
import com.google.cloud.videointelligence.v1p2beta1.ObjectTrackingAnnotation;
import com.google.cloud.videointelligence.v1p2beta1.TextAnnotation;
import com.google.cloud.videointelligence.v1p2beta1.VideoAnnotationResults;
Expand All @@ -29,6 +30,7 @@
import org.junit.After;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.JUnit4;
Expand Down Expand Up @@ -57,6 +59,8 @@ public class DetectIT {
private PrintStream out;
private PrintStream originalPrintStream;

@Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3);

@Before
public void setUp() {
bout = new ByteArrayOutputStream();
Expand Down

0 comments on commit a1fabaf

Please sign in to comment.