Skip to content

Commit a3161f5

Browse files
authored
chore: add multiple attempts on bigtable sample (#8447)
1 parent 5e7853f commit a3161f5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bigtable/hbase/snippets/src/test/java/com/example/bigtable/FiltersTest.java

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
import com.google.cloud.bigtable.admin.v2.BigtableTableAdminClient;
2323
import com.google.cloud.bigtable.hbase.BigtableConfiguration;
24+
import com.google.cloud.testing.junit4.MultipleAttemptsRule;
2425
import java.io.ByteArrayOutputStream;
2526
import java.io.IOException;
2627
import java.io.PrintStream;
@@ -38,10 +39,13 @@
3839
import org.junit.AfterClass;
3940
import org.junit.Before;
4041
import org.junit.BeforeClass;
42+
import org.junit.Rule;
4143
import org.junit.Test;
4244

4345
public class FiltersTest {
4446

47+
@Rule public final MultipleAttemptsRule multipleAttemptsRule = new MultipleAttemptsRule(5);
48+
4549
private static final String INSTANCE_ENV = "BIGTABLE_TESTING_INSTANCE";
4650
private static final String TABLE_ID =
4751
"mobile-time-series-" + UUID.randomUUID().toString().substring(0, 20);

0 commit comments

Comments
 (0)