From 0372a034fa8257844f404bf923d9a57347b72c1b Mon Sep 17 00:00:00 2001 From: Richard Weerasinghe Date: Mon, 13 Sep 2021 10:34:22 +1200 Subject: [PATCH] Added contact flow disappears test for connect instance delete --- aws/resource_aws_connect_contact_flow_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aws/resource_aws_connect_contact_flow_test.go b/aws/resource_aws_connect_contact_flow_test.go index b3666993f51..f2713ab4cca 100644 --- a/aws/resource_aws_connect_contact_flow_test.go +++ b/aws/resource_aws_connect_contact_flow_test.go @@ -118,8 +118,7 @@ func TestAccAwsConnectContactFlow_disappears_ConnectInstance(t *testing.T) { // var v2 connect.DescribeInstanceOutput rName := acctest.RandomWithPrefix("resource-test-terraform") rName2 := acctest.RandomWithPrefix("resource-test-terraform") - resourceName := "aws_connect_contact_flow.test" - resourceName2 := "aws_connect_instance.test" + resourceName := "aws_connect_instance.test" resource.ParallelTest(t, resource.TestCase{ PreCheck: func() { testAccPreCheck(t) }, @@ -131,7 +130,7 @@ func TestAccAwsConnectContactFlow_disappears_ConnectInstance(t *testing.T) { Config: testAccAwsConnectContactFlowConfigBasic(rName, rName2, "Disappear"), Check: resource.ComposeTestCheckFunc( testAccCheckAwsConnectContactFlowExists(resourceName, &v), - testAccCheckResourceDisappears(testAccProvider, resourceAwsConnectInstance(), resourceName2), + testAccCheckResourceDisappears(testAccProvider, resourceAwsConnectInstance(), resourceName), ), ExpectNonEmptyPlan: true, },