Skip to content

Commit

Permalink
test: update test to use prefix generator for tableId so it'll get cl… (
Browse files Browse the repository at this point in the history
#2458)

…eaned up 

Test table ids generated from prefix generator are cleaned up by https://togithub.com/googleapis/java-bigtable/blob/main/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/test_helpers/env/TestEnvRule.java#L148. Updating SampleRowsIT test to use PrefixGenerator in case the delete failed.
  • Loading branch information
mutianf authored Jan 6, 2025
1 parent 86ee1f5 commit 2ccd6fd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.google.cloud.bigtable.data.v2.models.KeyOffset;
import com.google.cloud.bigtable.data.v2.models.RowMutation;
import com.google.cloud.bigtable.test_helpers.env.EmulatorEnv;
import com.google.cloud.bigtable.test_helpers.env.PrefixGenerator;
import com.google.cloud.bigtable.test_helpers.env.TestEnvRule;
import com.google.common.collect.Lists;
import com.google.protobuf.ByteString;
Expand Down Expand Up @@ -106,7 +107,7 @@ public void testOnAuthorizedView()
}

private static AuthorizedView createPreSplitTableAndAuthorizedView() {
String tableId = UUID.randomUUID().toString();
String tableId = PrefixGenerator.newPrefix("SampleRowsIT#AuthorizedView");
String authorizedViewId = UUID.randomUUID().toString();

testEnvRule
Expand Down

0 comments on commit 2ccd6fd

Please sign in to comment.