Skip to content

Commit

Permalink
test: Added retries to DetectLogoGcsTest (#730)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
kweinmeister and gcf-owl-bot[bot] authored Nov 3, 2021
1 parent 67d3c52 commit 5218932
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion video/src/test/java/com/example/video/DetectLogoGcsTest.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2020 Google Inc.
* Copyright 2021 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -18,13 +18,15 @@

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

import com.google.cloud.testing.junit4.MultipleAttemptsRule;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.PrintStream;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeoutException;
import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;

public class DetectLogoGcsTest {
Expand All @@ -43,6 +45,8 @@ public void tearDown() {
System.setOut(null);
}

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

@Test
public void testLogoDetectGcs()
throws IOException, ExecutionException, InterruptedException, TimeoutException {
Expand Down

0 comments on commit 5218932

Please sign in to comment.