feat: add tparallel linter to improve handling parallel tests

This linter both prevents parallel test races as well as
suggests parallel tests where appropriate:
See: https://github.com/moricho/tparallel

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
Milos Gajdos
2023-11-29 21:40:20 +00:00
parent f71b32894a
commit b3681c4cd3
3 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ func TestErrorFormat(t *testing.T) {
}
func TestErrors(t *testing.T) {
t.Parallel()
drvName := "foo"
testCases := []struct {