t.Parallel() called too many times, should be inside of parallelizable test func, see https://pkg.go.dev/testing#hdr-Subtests_and_Sub_benchmarks

Shashwat Kansal 2022-10-21 17:21:25 +01:00
parent 4e2054c8c7
commit 708eb8bf2d

@ -73,7 +73,6 @@ tests := map[string]struct {
} }
for name, test := range tests { for name, test := range tests {
t.Parallel()
test := test test := test
t.Run(name, func(t *testing.T) { t.Run(name, func(t *testing.T) {
t.Parallel() t.Parallel()