Give bucket unique name in tests.

This will stop the test failure from the dangling resource.
This commit is contained in:
Paddy 2017-10-11 16:52:37 -07:00
parent 7ea31892dd
commit 0183e26999

View File

@ -308,7 +308,7 @@ func TestAccStorageBucket_forceDestroy(t *testing.T) {
),
},
resource.TestStep{
Config: testAccStorageBucket_customAttributes("idontexist"),
Config: testAccStorageBucket_customAttributes(acctest.RandomWithPrefix("tf-test-acl-bucket")),
Check: resource.ComposeTestCheckFunc(
testAccCheckStorageBucketMissing(bucketName),
),