Skip to content

Commit

Permalink
Added contact flow disappears test for connect instance delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Weerasinghe authored and anGie44 committed Sep 23, 2021
1 parent 128a5a6 commit 0372a03
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions aws/resource_aws_connect_contact_flow_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) },
Expand All @@ -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,
},
Expand Down

0 comments on commit 0372a03

Please sign in to comment.