File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -206,9 +206,7 @@ func TestAccTencentCloudInstanceWithPrivateIP(t *testing.T) {
206206 })
207207}
208208
209- func TestAccTencentCloudNeedFixInstanceWithKeyPair (t * testing.T ) {
210- t .Parallel ()
211-
209+ func TestAccTencentCloudInstanceWithKeyPair (t * testing.T ) {
212210 id := "tencentcloud_instance.foo"
213211 resource .Test (t , resource.TestCase {
214212 PreCheck : func () { testAccPreCheck (t ) },
@@ -227,8 +225,11 @@ func TestAccTencentCloudNeedFixInstanceWithKeyPair(t *testing.T) {
227225 ),
228226 },
229227 {
230- PreConfig : func () { testAccStepPreConfigSetTempAKSK (t , ACCOUNT_TYPE_COMMON ) },
231- Config : testAccTencentCloudInstanceWithKeyPair ("key_pair_1" ),
228+ PreConfig : func () {
229+ testAccStepPreConfigSetTempAKSK (t , ACCOUNT_TYPE_COMMON )
230+ time .Sleep (time .Duration (time .Second * 5 ))
231+ },
232+ Config : testAccTencentCloudInstanceWithKeyPair ("key_pair_1" ),
232233 Check : resource .ComposeTestCheckFunc (
233234 testAccCheckTencentCloudDataSourceID (id ),
234235 testAccCheckTencentCloudInstanceExists (id ),
You can’t perform that action at this time.
0 commit comments