Skip to content

Commit b9a7136

Browse files
authored
test: Add retries to streaming shot change detection test (#809)
* test: Add retries to streaming shot change detection test * test: Updated MultipleAttemptsRule * test: Move MultipleAttemptsRule to new location
1 parent 32b1798 commit b9a7136

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

video/src/test/java/beta/video/StreamingShotChangeDetectionIT.java

+3
Original file line numberDiff line numberDiff line change
@@ -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 io.grpc.StatusRuntimeException;
2223
import java.io.ByteArrayOutputStream;
2324
import java.io.IOException;
2425
import java.io.PrintStream;
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
import org.junit.runner.RunWith;
3032
import org.junit.runners.JUnit4;
@@ -33,6 +35,7 @@
3335
@RunWith(JUnit4.class)
3436
@SuppressWarnings("checkstyle:abbreviationaswordinname")
3537
public class StreamingShotChangeDetectionIT {
38+
@Rule public final MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3);
3639

3740
private ByteArrayOutputStream bout;
3841
private PrintStream out;

0 commit comments

Comments
 (0)