Skip to content

Commit 26c30b7

Browse files
internal/acceptance: fixing the linting
1 parent 7833565 commit 26c30b7

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

internal/acceptance/testcase.go

+4-5
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@ import (
1313
"github.com/hashicorp/terraform-provider-azurerm/internal/provider"
1414
)
1515

16-
// lintignore:AT001
1716
func (td TestData) DataSourceTest(t *testing.T, steps []TestStep) {
1817
// DataSources don't need a check destroy - however since this is a wrapper function
1918
// and not matching the ignore pattern `XXX_data_source_test.go`, this needs to be explicitly opted out
19+
// // lintignore:AT001
2020
testCase := resource.TestCase{
2121
PreCheck: func() { PreCheck(t) },
2222
Steps: steps,
2323
}
2424
td.runAcceptanceTest(t, testCase)
2525
}
2626

27-
// lintignore:AT001
2827
func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) {
2928
// DataSources don't need a check destroy - however since this is a wrapper function
3029
// and not matching the ignore pattern `XXX_data_source_test.go`, this needs to be explicitly opted out
30+
// lintignore:AT001
3131
testCase := resource.TestCase{
3232
PreCheck: func() { PreCheck(t) },
3333
Steps: steps,
@@ -36,7 +36,6 @@ func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) {
3636
td.runAcceptanceSequentialTest(t, testCase)
3737
}
3838

39-
// lintignore:AT001
4039
func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, steps []TestStep) {
4140
testCase := resource.TestCase{
4241
PreCheck: func() { PreCheck(t) },
@@ -54,17 +53,17 @@ func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, s
5453

5554
// ResourceTestIgnoreCheckDestroyed skips the check to confirm the resource test has been destroyed.
5655
// This is done because certain resources can't actually be deleted.
57-
// lintignore:AT001
5856
func (td TestData) ResourceTestSkipCheckDestroyed(t *testing.T, steps []TestStep) {
57+
// lintignore:AT001
5958
testCase := resource.TestCase{
6059
PreCheck: func() { PreCheck(t) },
6160
Steps: steps,
6261
}
6362
td.runAcceptanceTest(t, testCase)
6463
}
6564

66-
// lintignore:AT001
6765
func (td TestData) ResourceSequentialTestSkipCheckDestroyed(t *testing.T, steps []TestStep) {
66+
// lintignore:AT001
6867
testCase := resource.TestCase{
6968
PreCheck: func() { PreCheck(t) },
7069
Steps: steps,

0 commit comments

Comments
 (0)