@@ -34,7 +34,7 @@ func TestAccTencentCloudTdmqRocketmqVipInstanceResource_basic(t *testing.T) {
34
34
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "spec" ),
35
35
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "node_count" ),
36
36
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "storage_size" ),
37
- sleepBetweenSteps (1 * time .Minute ),
37
+ tccommon . E2eTimeSleepBetweenSteps (1 * time .Minute ),
38
38
),
39
39
},
40
40
{
@@ -46,20 +46,13 @@ func TestAccTencentCloudTdmqRocketmqVipInstanceResource_basic(t *testing.T) {
46
46
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "spec" ),
47
47
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "node_count" ),
48
48
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "storage_size" ),
49
- sleepBetweenSteps (1 * time .Minute ),
49
+ tccommon . E2eTimeSleepBetweenSteps (1 * time .Minute ),
50
50
),
51
51
},
52
52
},
53
53
})
54
54
}
55
55
56
- func sleepBetweenSteps (d time.Duration ) resource.TestCheckFunc {
57
- return func (s * terraform.State ) error {
58
- time .Sleep (d )
59
- return nil
60
- }
61
- }
62
-
63
56
func testAccCheckTdmqRocketmqVipInstanceDestroy (s * terraform.State ) error {
64
57
logId := tccommon .GetLogId (tccommon .ContextNil )
65
58
ctx := context .WithValue (context .TODO (), tccommon .LogIdKey , logId )
0 commit comments