Skip to content

Commit

Permalink
use the correct CheckDestroy
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiChangkuo committed May 21, 2021
1 parent 3918992 commit 4ff997c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions huaweicloud/data_source_huaweicloud_iec_vpc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ func TestAccIECVpcDataSource_basic(t *testing.T) {
rName := fmt.Sprintf("tf-acc-vpc-%s", acctest.RandString(5))

resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckIecVpcV1Destroy,
Steps: []resource.TestStep{
{
Config: testAccDataSourceIECVpc_basic(rName),
Expand Down
2 changes: 1 addition & 1 deletion huaweicloud/resource_huaweicloud_iec_vpc_subnet_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestAccIecVPCSubnetV1_basic(t *testing.T) {
resource.ParallelTest(t, resource.TestCase{
PreCheck: func() { testAccPreCheck(t) },
Providers: testAccProviders,
CheckDestroy: testAccCheckIecVpcV1Destroy,
CheckDestroy: testAccCheckIecVpcSubnetV1Destroy,
Steps: []resource.TestStep{
{
Config: testAccIecVpcSubnetV1_customer(rName),
Expand Down

0 comments on commit 4ff997c

Please sign in to comment.