You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I created this on my repo with the github-action version of the golang-ci linter: vankleefjim/tenv-bug@10f12e4 with successful CI run vankleefjim/tenv-bug@f01c689 with failing CI run, but only in the test that directly runs os.Setenv without a table-driven test.
The text was updated successfully, but these errors were encountered:
One standard pattern in go is to used table driven tests, see https://dave.cheney.net/2019/05/07/prefer-table-driven-tests
This linter does not work if
os.Setenv
is used in these tests.Example:
I created this on my repo with the github-action version of the golang-ci linter:
vankleefjim/tenv-bug@10f12e4 with successful CI run
vankleefjim/tenv-bug@f01c689 with failing CI run, but only in the test that directly runs os.Setenv without a table-driven test.
The text was updated successfully, but these errors were encountered: