Skip to content

Commit 7bdc265

Browse files
gitmknanonymous
andauthored
fix: modify tsf test (#1746)
Co-authored-by: anonymous <anonymous@mail.org>
1 parent f56c5e9 commit 7bdc265

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

tencentcloud/data_source_tc_tsf_unit_rules_test.go

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
// go test -i; go test -test.run TestAccTencentCloudTsfUnitRulesDataSource_basic -v
1010
func TestAccTencentCloudTsfUnitRulesDataSource_basic(t *testing.T) {
11-
t.Parallel()
11+
// t.Parallel()
1212
resource.Test(t, resource.TestCase{
1313
PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_TSF) },
1414
Providers: testAccProviders,
@@ -48,17 +48,13 @@ func TestAccTencentCloudTsfUnitRulesDataSource_basic(t *testing.T) {
4848
})
4949
}
5050

51-
const testAccTsfUnitRulesDataSourceVar = `
52-
variable "gateway_instance_id" {
53-
default = "` + defaultTsfGateway + `"
54-
}
55-
`
56-
57-
const testAccTsfUnitRulesDataSource = testAccTsfUnitRulesDataSourceVar + `
51+
const testAccTsfUnitRulesDataSource = testAccTsfUnitRule + `
5852
5953
data "tencentcloud_tsf_unit_rules" "unit_rules" {
6054
gateway_instance_id = var.gateway_instance_id
6155
status = "disabled"
56+
57+
depends_on = [ tencentcloud_tsf_unit_rule.unit_rule ]
6258
}
6359
6460
`

tencentcloud/resource_tc_tsf_application_public_config_release_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88

99
// go test -i; go test -test.run TestAccTencentCloudTsfApplicationPublicConfigReleaseResource_basic -v
1010
func TestAccTencentCloudTsfApplicationPublicConfigReleaseResource_basic(t *testing.T) {
11-
t.Parallel()
11+
// t.Parallel()
1212

1313
resource.Test(t, resource.TestCase{
1414
PreCheck: func() { testAccPreCheckCommon(t, ACCOUNT_TYPE_TSF) },

0 commit comments

Comments
 (0)