Skip to content

Commit c97c38c

Browse files
committed
fix: modify service rate limit test
1 parent a5a1c15 commit c97c38c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tencentcloud/resource_tc_tse_cngw_service_rate_limit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func testAccCheckTseCngwServiceRateLimitDestroy(s *terraform.State) error {
7171
return err
7272
}
7373

74-
if !IsNil(res) {
74+
if res != nil && res.Enabled != nil {
7575
return fmt.Errorf("tse cngwServiceRateLimit %s still exists", rs.Primary.ID)
7676
}
7777
}

0 commit comments

Comments
 (0)