-
-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
Both t.Setenv and t.Chdir are not compatible with t.Parallel. The linter should detect their use and omit tests that have them.
See the docs:
https://pkg.go.dev/testing#T.Setenv
Because Setenv affects the whole process, it cannot be used in parallel tests or tests with parallel ancestors.
https://pkg.go.dev/testing#T.Chdir
Because Chdir affects the whole process, it cannot be used in parallel tests or tests with parallel ancestors.
ccoVeille
Metadata
Metadata
Assignees
Labels
No labels