Skip to content

Commit 853d34d

Browse files
authored
fix testcases (#1081)
* fix testcases * dcg add sleep protect
1 parent 2b96db3 commit 853d34d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tencentcloud/resource_tc_api_gateway_strategy_attachment_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,22 +99,22 @@ func testApiStrategyAttachmentExists(n string) resource.TestCheckFunc {
9999

100100
const testAPIGatewayServiceAttachmentBase = `
101101
resource "tencentcloud_api_gateway_service" "service" {
102-
service_name = "niceservice"
102+
service_name = "attach_service"
103103
protocol = "http&https"
104104
net_type = ["INNER", "OUTER"]
105105
ip_version = "IPv4"
106106
}
107107
108108
resource "tencentcloud_api_gateway_ip_strategy" "test"{
109109
service_id = tencentcloud_api_gateway_service.service.id
110-
strategy_name = "tf_test"
110+
strategy_name = "attach_strategy"
111111
strategy_type = "BLACK"
112112
strategy_data = "9.9.9.9"
113113
}
114114
115115
resource "tencentcloud_api_gateway_api" "api" {
116116
service_id = tencentcloud_api_gateway_service.service.id
117-
api_name = "hello_update"
117+
api_name = "attach_api"
118118
api_desc = "my hello api update"
119119
auth_type = "SECRET"
120120
protocol = "HTTP"

tencentcloud/resource_tc_dc_gateway.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func resourceTencentCloudDcGatewayCreate(d *schema.ResourceData, meta interface{
140140
d.SetId(dcgId)
141141

142142
// add sleep protect, either network_instance_id will be set "".
143-
time.Sleep(1)
143+
time.Sleep(1 * time.Second)
144144

145145
return resourceTencentCloudDcGatewayRead(d, meta)
146146
}

0 commit comments

Comments
 (0)