Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 906 Bytes

README.md

File metadata and controls

38 lines (29 loc) · 906 Bytes

AT007

The AT007 analyzer reports acceptance test functions that contain multiple resource.ParallelTest() invocations. Acceptance tests should be split by invocation and multiple resource.ParallelTest() will cause a panic.

Flagged Code

func TestAccExampleThing_basic(t *testing.T) {
  resource.ParallelTest(/* ... */)
  resource.ParallelTest(/* ... */)
}

Passing Code

func TestAccExampleThing_first(t *testing.T) {
  resource.ParallelTest(/* ... */)
}

func TestAccExampleThing_second(t *testing.T) {
  resource.ParallelTest(/* ... */)
}

Ignoring Reports

Singular reports can be ignored by adding the a //lintignore:AT007 Go code comment at the end of the offending line or on the line immediately proceding, e.g.

//lintignore:AT007
func TestAccExampleThing_basic(t *testing.T) {
  resource.ParallelTest(/* ... */)
  resource.ParallelTest(/* ... */)
}