From 095679c50b915c6307b3c7fcecfb9cc130db8d22 Mon Sep 17 00:00:00 2001 From: Sander Blue Date: Tue, 28 May 2024 13:55:52 -0500 Subject: [PATCH] chore(tests): improve test efficiency, no need to run testAccPreCheck() here --- newrelic/resource_newrelic_alert_policy_channel_test.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/newrelic/resource_newrelic_alert_policy_channel_test.go b/newrelic/resource_newrelic_alert_policy_channel_test.go index ec6e55849..ee4a39ee4 100644 --- a/newrelic/resource_newrelic_alert_policy_channel_test.go +++ b/newrelic/resource_newrelic_alert_policy_channel_test.go @@ -18,7 +18,6 @@ func TestAccNewRelicAlertPolicyChannel_Basic(t *testing.T) { rName := acctest.RandString(5) resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckNewRelicAlertPolicyChannelDestroy, Steps: []resource.TestStep{ @@ -51,7 +50,6 @@ func TestAccNewRelicAlertPolicyChannel_ChannelOrder(t *testing.T) { rName := acctest.RandString(5) resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckNewRelicAlertPolicyChannelDestroy, Steps: []resource.TestStep{ @@ -71,7 +69,6 @@ func TestAccNewRelicAlertPolicyChannel_MutipleChannels(t *testing.T) { rName := acctest.RandString(5) resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckNewRelicAlertPolicyChannelDestroy, Steps: []resource.TestStep{ @@ -103,7 +100,6 @@ func TestAccNewRelicAlertPolicyChannel_AlertPolicyNotFound(t *testing.T) { rName := fmt.Sprintf("tf-test-%s", acctest.RandString(5)) resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckNewRelicAlertPolicyChannelDestroy, Steps: []resource.TestStep{ @@ -125,7 +121,6 @@ func TestAccNewRelicAlertPolicyChannel_AlertChannelNotFound(t *testing.T) { rName := fmt.Sprintf("tf-test-%s", acctest.RandString(5)) resource.ParallelTest(t, resource.TestCase{ - PreCheck: func() { testAccPreCheck(t) }, Providers: testAccProviders, CheckDestroy: testAccCheckNewRelicAlertPolicyChannelDestroy, Steps: []resource.TestStep{