Skip to content

Commit a545e77

Browse files
authored
test: Add multiple attempts to Gen App Builder SearchTest (GoogleCloudPlatform#8299)
- Fixes GoogleCloudPlatform#8003
1 parent b17ae59 commit a545e77

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

discoveryengine/src/test/java/discoveryengine/v1beta/SearchTest.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,17 @@
1919
import static com.google.common.truth.Truth.assertThat;
2020
import static org.junit.Assert.assertNotNull;
2121

22+
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
2223
import java.io.ByteArrayOutputStream;
2324
import java.io.PrintStream;
2425
import org.junit.After;
2526
import org.junit.Before;
27+
import org.junit.Rule;
2628
import org.junit.Test;
2729

2830
public class SearchTest {
31+
@Rule public final MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(3);
32+
2933
private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT");
3034
private static final String LOCATION = "global";
3135
private static final String COLLECTION_ID = "default_collection";

0 commit comments

Comments
 (0)