Skip to content

Commit 03e9b74

Browse files
committed
beautify code
1 parent 3dca01e commit 03e9b74

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tencentcloud/resource_tc_instance_test.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ func TestAccTencentCloudInstanceWithImageLogin(t *testing.T) {
252252
CheckDestroy: testAccCheckInstanceDestroy,
253253
Steps: []resource.TestStep{
254254
{
255-
Config: testAccTencentCloudInstanceWithImageLogin(),
255+
Config: testAccTencentCloudInstanceWithImageLogin,
256256
Check: resource.ComposeTestCheckFunc(
257257
testAccCheckTencentCloudDataSourceID(id),
258258
testAccCheckTencentCloudInstanceExists(id),
@@ -682,8 +682,7 @@ resource "tencentcloud_instance" "foo" {
682682
)
683683
}
684684

685-
func testAccTencentCloudInstanceWithImageLogin() string {
686-
return defaultInstanceVariable + `
685+
const testAccTencentCloudInstanceWithImageLogin = defaultInstanceVariable + `
687686
data "tencentcloud_images" "zoo" {
688687
image_type = ["PRIVATE_IMAGE"]
689688
os_name = "centos"
@@ -698,7 +697,6 @@ resource "tencentcloud_instance" "foo" {
698697
system_disk_type = "CLOUD_PREMIUM"
699698
}
700699
`
701-
}
702700

703701
func testAccTencentCloudInstanceWithName(instanceName string) string {
704702
return fmt.Sprintf(

0 commit comments

Comments
 (0)