From 2775ad5f64fb7b33628bd9cd0437cd73b6361d16 Mon Sep 17 00:00:00 2001 From: Mike <45373284+munkhuushmgl@users.noreply.github.com> Date: Tue, 20 Apr 2021 13:04:32 -0700 Subject: [PATCH] chore: service throttles on public URLs & its known issue. (#477) --- .../test/java/com/example/vision/DetectLandmarksGcsTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vision/snippets/src/test/java/com/example/vision/DetectLandmarksGcsTest.java b/vision/snippets/src/test/java/com/example/vision/DetectLandmarksGcsTest.java index e1aac9a6e6c..31ff8cffced 100644 --- a/vision/snippets/src/test/java/com/example/vision/DetectLandmarksGcsTest.java +++ b/vision/snippets/src/test/java/com/example/vision/DetectLandmarksGcsTest.java @@ -20,10 +20,12 @@ import com.example.vision.snippets.DetectLandmarksGcs; import com.example.vision.snippets.DetectLandmarksUrl; +import com.google.cloud.testing.junit4.MultipleAttemptsRule; import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.junit.After; import org.junit.Before; +import org.junit.Rule; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -52,6 +54,9 @@ public void tearDown() { System.setOut(originalPrintStream); } + @Rule + public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3); + @Test public void testLandmarksUrl() throws Exception { // Act