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 06b36a2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ resource "huaweicloud_iec_vpc_subnet" "subnet_1" {
}
resource "huaweicloud_iec_vpc_subnet" "subnet_2" {
name = "%s-1"
name = "%s-2"
cidr = "192.168.1.0/24"
vpc_id = huaweicloud_iec_vpc.vpc_test.id
site_id = data.huaweicloud_iec_sites.sites_test.sites[1].id
Expand Down
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 06b36a2

Please sign in to comment.