Skip to content

Commit 2775ad5

Browse files
authored
chore: service throttles on public URLs & its known issue. (#477)
1 parent ac0277b commit 2775ad5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vision/snippets/src/test/java/com/example/vision/DetectLandmarksGcsTest.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@
2020

2121
import com.example.vision.snippets.DetectLandmarksGcs;
2222
import com.example.vision.snippets.DetectLandmarksUrl;
23+
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
2324
import java.io.ByteArrayOutputStream;
2425
import java.io.PrintStream;
2526
import org.junit.After;
2627
import org.junit.Before;
28+
import org.junit.Rule;
2729
import org.junit.Test;
2830
import org.junit.runner.RunWith;
2931
import org.junit.runners.JUnit4;
@@ -52,6 +54,9 @@ public void tearDown() {
5254
System.setOut(originalPrintStream);
5355
}
5456

57+
@Rule
58+
public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3);
59+
5560
@Test
5661
public void testLandmarksUrl() throws Exception {
5762
// Act

0 commit comments

Comments
 (0)