From f83cb8bbcb53c54d98f136e83ec7cb56ac694432 Mon Sep 17 00:00:00 2001 From: Kit Ewbank Date: Tue, 13 Jul 2021 13:52:46 -0400 Subject: [PATCH] Fix golangci-lint error 'deadcode'. --- ...esource_aws_securityhub_standards_subscription_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/aws/resource_aws_securityhub_standards_subscription_test.go b/aws/resource_aws_securityhub_standards_subscription_test.go index 25f2f9a8559..d0b77d76edf 100644 --- a/aws/resource_aws_securityhub_standards_subscription_test.go +++ b/aws/resource_aws_securityhub_standards_subscription_test.go @@ -19,7 +19,7 @@ func testAccAWSSecurityHubStandardsSubscription_basic(t *testing.T) { PreCheck: func() { testAccPreCheck(t) }, ErrorCheck: testAccErrorCheck(t, securityhub.EndpointsID), Providers: testAccProviders, - CheckDestroy: testAccCheckAWSSecurityHubAccountDestroy, + CheckDestroy: testAccCheckAWSSecurityHubStandardsSubscriptionDestroy, Steps: []resource.TestStep{ { Config: testAccAWSSecurityHubStandardsSubscriptionConfig_basic, @@ -44,7 +44,7 @@ func testAccAWSSecurityHubStandardsSubscription_disappears(t *testing.T) { PreCheck: func() { testAccPreCheck(t) }, ErrorCheck: testAccErrorCheck(t, securityhub.EndpointsID), Providers: testAccProviders, - CheckDestroy: testAccCheckAWSSecurityHubAccountDestroy, + CheckDestroy: testAccCheckAWSSecurityHubStandardsSubscriptionDestroy, Steps: []resource.TestStep{ { Config: testAccAWSSecurityHubStandardsSubscriptionConfig_basic, @@ -107,10 +107,6 @@ func testAccCheckAWSSecurityHubStandardsSubscriptionDestroy(s *terraform.State) return nil } -const testAccAWSSecurityHubStandardsSubscriptionConfig_empty = ` -resource "aws_securityhub_account" "test" {} -` - const testAccAWSSecurityHubStandardsSubscriptionConfig_basic = ` resource "aws_securityhub_account" "test" {}