Skip to content

Commit

Permalink
test: forbid using t.Parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Dec 11, 2024
1 parent 28c491a commit 9fe6d76
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ linters:
# - errorlint
# - exhaustive
# - fatcontext
# - forbidigo
- forbidigo
- ginkgolinter
- gocheckcompilerdirectives
- gochecknoinits
Expand Down Expand Up @@ -90,3 +90,11 @@ linters:
- whitespace
- zerologlint
disable-all: true

linters-settings:
forbidigo:
forbid:
# Parallel tests mixes up log lines of multiple tests in the internal test runner
- p: ^testing.T.Parallel$
pkg: ^testing$
analyze-types: true

0 comments on commit 9fe6d76

Please sign in to comment.