From 5882cc7c6780f43d53fa67b84509bc5f4ea603c9 Mon Sep 17 00:00:00 2001 From: Christopher Wilcox Date: Sat, 9 Oct 2021 08:01:13 -0700 Subject: [PATCH] test(bigtable): avoid instance name collisions to speed up creation (#4970) --- bigtable/integration_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bigtable/integration_test.go b/bigtable/integration_test.go index d7a9662f07a..980a0d10366 100644 --- a/bigtable/integration_test.go +++ b/bigtable/integration_test.go @@ -1441,6 +1441,7 @@ func TestIntegration_AdminCreateInstance(t *testing.T) { if instanceToCreate == "" { t.Skip("instanceToCreate not set, skipping instance creation testing") } + instanceToCreate += "0" testEnv, err := NewIntegrationEnv() if err != nil { @@ -1540,6 +1541,7 @@ func TestIntegration_AdminEncryptionInfo(t *testing.T) { if instanceToCreate == "" { t.Skip("instanceToCreate not set, skipping instance creation testing") } + instanceToCreate += "1" testEnv, err := NewIntegrationEnv() if err != nil { @@ -1718,6 +1720,8 @@ func TestIntegration_AdminUpdateInstanceLabels(t *testing.T) { if instanceToCreate == "" { t.Skip("instanceToCreate not set, skipping instance creation testing") } + instanceToCreate += "2" + testEnv, err := NewIntegrationEnv() if err != nil { t.Fatalf("IntegrationEnv: %v", err) @@ -1809,6 +1813,7 @@ func TestIntegration_AdminUpdateInstanceAndSyncClusters(t *testing.T) { if instanceToCreate == "" { t.Skip("instanceToCreate not set, skipping instance update testing") } + instanceToCreate += "3" testEnv, err := NewIntegrationEnv() if err != nil {