Skip to content

Commit 5218932

Browse files
test: Added retries to DetectLogoGcsTest (#730)
* test: Added retries to DetectLogoGcsTest * Update copyright * 🦉 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 67d3c52 commit 5218932

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

video/src/test/java/com/example/video/DetectLogoGcsTest.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 Google Inc.
2+
* Copyright 2021 Google Inc.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -18,13 +18,15 @@
1818

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

21+
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
2122
import java.io.ByteArrayOutputStream;
2223
import java.io.IOException;
2324
import java.io.PrintStream;
2425
import java.util.concurrent.ExecutionException;
2526
import java.util.concurrent.TimeoutException;
2627
import org.junit.After;
2728
import org.junit.Before;
29+
import org.junit.Rule;
2830
import org.junit.Test;
2931

3032
public class DetectLogoGcsTest {
@@ -43,6 +45,8 @@ public void tearDown() {
4345
System.setOut(null);
4446
}
4547

48+
@Rule public MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3);
49+
4650
@Test
4751
public void testLogoDetectGcs()
4852
throws IOException, ExecutionException, InterruptedException, TimeoutException {

0 commit comments

Comments
 (0)