Skip to content

Commit

Permalink
Merge pull request #932 from cloudflare/more-test-fixes
Browse files Browse the repository at this point in the history
More test fixes
  • Loading branch information
jacobbednarz authored Feb 3, 2021
2 parents 5f61d79 + 73cc8b9 commit 6ff2dad
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ func TestAccCloudflareAccessIdentityProviderOneTimePin(t *testing.T) {
os.Setenv("CLOUDFLARE_API_TOKEN", "")
}

t.Parallel()
rnd := generateRandomResourceName()
resourceName := "cloudflare_access_identity_provider." + rnd
resource.Test(t, resource.TestCase{
Expand Down
4 changes: 2 additions & 2 deletions cloudflare/resource_cloudflare_custom_hostname_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,7 @@ func TestAccCloudflareCustomHostname_UpdatingZoneForcesNewResource(t *testing.T)
PreCheck: func() {
testAccPreCheck(t)
testAccPreCheckAltZoneID(t)
testAccPreCheckAltDomain(t)
},
Providers: testAccProviders,
Steps: []resource.TestStep{
Expand All @@ -272,8 +273,7 @@ func TestAccCloudflareCustomHostname_UpdatingZoneForcesNewResource(t *testing.T)
),
},
{
ExpectNonEmptyPlan: true,
Config: testAccCheckCloudflareCustomHostnameBasic(altZoneID, rnd, altDomain),
Config: testAccCheckCloudflareCustomHostnameBasic(altZoneID, rnd, altDomain),
Check: resource.ComposeTestCheckFunc(
testAccCheckCloudflareCustomHostnameExists(resourceName, &after),
testAccCheckCloudflareCustomHostnameRecreated(&before, &after),
Expand Down
1 change: 0 additions & 1 deletion cloudflare/resource_cloudflare_waf_override_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ func TestAccCloudflareWAFOverrideCreateAndUpdate(t *testing.T) {
os.Setenv("CLOUDFLARE_API_TOKEN", "")
}

t.Parallel()
zoneID := os.Getenv("CLOUDFLARE_ZONE_ID")
zoneName := os.Getenv("CLOUDFLARE_DOMAIN")

Expand Down
4 changes: 0 additions & 4 deletions cloudflare/resource_cloudflare_worker_route_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const (
)

func TestAccCloudflareWorkerRoute_MultiScriptEnt(t *testing.T) {
t.Parallel()

// Temporarily unset CLOUDFLARE_API_TOKEN if it is set as the Workers
// service does not yet support the API tokens and it results in
// misleading state error messages.
Expand Down Expand Up @@ -97,8 +95,6 @@ resource "cloudflare_worker_script" "%[3]s" {
}

func TestAccCloudflareWorkerRoute_MultiScriptDisabledRoute(t *testing.T) {
t.Parallel()

// Temporarily unset CLOUDFLARE_API_TOKEN if it is set as the Workers
// service does not yet support the API tokens and it results in
// misleading state error messages.
Expand Down

0 comments on commit 6ff2dad

Please sign in to comment.