Skip to content

Commit bbacfd4

Browse files
authored
ci: unleash the paralleltest lints (#100)
1 parent ef34f3a commit bbacfd4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+70
-1
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ linters:
1515
- makezero
1616
- misspell
1717
- nilerr
18-
# - paralleltest # Reference: https://github.com/kunwardeep/paralleltest/issues/14
18+
- paralleltest
1919
- predeclared
2020
- staticcheck
2121
- tenv

float64validator/all_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func TestAllValidatorValidateFloat64(t *testing.T) {
5454
for name, test := range tests {
5555
name, test := name, test
5656
t.Run(name, func(t *testing.T) {
57+
t.Parallel()
5758
request := validator.Float64Request{
5859
Path: path.Root("test"),
5960
PathExpression: path.MatchRoot("test"),

float64validator/any_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ func TestAnyValidatorValidateFloat64(t *testing.T) {
6565
for name, test := range tests {
6666
name, test := name, test
6767
t.Run(name, func(t *testing.T) {
68+
t.Parallel()
6869
request := validator.Float64Request{
6970
Path: path.Root("test"),
7071
PathExpression: path.MatchRoot("test"),

float64validator/any_with_all_warnings_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ func TestAnyWithAllWarningsValidatorValidateFloat64(t *testing.T) {
6666
for name, test := range tests {
6767
name, test := name, test
6868
t.Run(name, func(t *testing.T) {
69+
t.Parallel()
6970
request := validator.Float64Request{
7071
Path: path.Root("test"),
7172
PathExpression: path.MatchRoot("test"),

float64validator/at_least_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func TestAtLeastValidator(t *testing.T) {
5050
for name, test := range tests {
5151
name, test := name, test
5252
t.Run(name, func(t *testing.T) {
53+
t.Parallel()
5354
request := validator.Float64Request{
5455
Path: path.Root("test"),
5556
PathExpression: path.MatchRoot("test"),

float64validator/at_most_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func TestAtMostValidator(t *testing.T) {
5050
for name, test := range tests {
5151
name, test := name, test
5252
t.Run(name, func(t *testing.T) {
53+
t.Parallel()
5354
request := validator.Float64Request{
5455
Path: path.Root("test"),
5556
PathExpression: path.MatchRoot("test"),

float64validator/between_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ func TestBetweenValidator(t *testing.T) {
6868
for name, test := range tests {
6969
name, test := name, test
7070
t.Run(name, func(t *testing.T) {
71+
t.Parallel()
7172
request := validator.Float64Request{
7273
Path: path.Root("test"),
7374
PathExpression: path.MatchRoot("test"),

float64validator/none_of_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func TestNoneOfValidator(t *testing.T) {
6262
for name, test := range testCases {
6363
name, test := name, test
6464
t.Run(name, func(t *testing.T) {
65+
t.Parallel()
6566
req := validator.Float64Request{
6667
ConfigValue: test.in,
6768
}

float64validator/one_of_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ func TestOneOfValidator(t *testing.T) {
6262
for name, test := range testCases {
6363
name, test := name, test
6464
t.Run(name, func(t *testing.T) {
65+
t.Parallel()
6566
req := validator.Float64Request{
6667
ConfigValue: test.in,
6768
}

helpers/validatordiag/diag_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ func TestCapitalize(t *testing.T) {
3333
for name, test := range tests {
3434
name, test := name, test
3535
t.Run(name, func(t *testing.T) {
36+
t.Parallel()
3637
got := capitalize(test.input)
3738

3839
if got != test.expected {

0 commit comments

Comments
 (0)