Skip to content
This repository was archived by the owner on May 8, 2026. It is now read-only.

Commit c8a53f9

Browse files
committed
use separate tables for tests
1 parent 3b4e6b4 commit c8a53f9

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/it/BigtableSchemaBundleIT.java

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import java.util.List;
4444
import java.util.Random;
4545
import java.util.logging.Logger;
46-
import org.junit.AfterClass;
4746
import org.junit.BeforeClass;
4847
import org.junit.ClassRule;
4948
import org.junit.Rule;
@@ -65,7 +64,7 @@ public class BigtableSchemaBundleIT {
6564

6665
private static BigtableTableAdminClient tableAdmin;
6766
private static BigtableDataClient dataClient;
68-
private static Table testTable;
67+
private Table testTable;
6968

7069
@BeforeClass
7170
public static void setUpClass() throws InterruptedException {
@@ -76,12 +75,15 @@ public static void setUpClass() throws InterruptedException {
7675

7776
tableAdmin = testEnvRule.env().getTableAdminClient();
7877
dataClient = testEnvRule.env().getDataClient();
78+
}
7979

80+
@Before
81+
public void setUp() throws InterruptedException {
8082
testTable = createAndPopulateTestTable(tableAdmin, dataClient);
8183
}
8284

83-
@AfterClass
84-
public static void tearDownClass() {
85+
@After
86+
public void tearDown() {
8587
if (testTable != null) {
8688
try {
8789
tableAdmin.deleteTable(testTable.getId());

0 commit comments

Comments
 (0)