Skip to content

Commit e83cbb9

Browse files
authored
Merge pull request #1798 from ferhatelmas/paralleltest
*: enable paralleltest linter
2 parents ff48cfa + 1789031 commit e83cbb9

File tree

165 files changed

+296
-6
lines changed

Some content is hidden

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

165 files changed

+296
-6
lines changed

.golangci.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ linters:
1010
- misspell
1111
- modernize
1212
- nolintlint
13+
- paralleltest
1314
- prealloc
1415
- revive
1516
- staticcheck

backend/http/http_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ func (f *fixturesLoader) Load(ep *transport.Endpoint) (storage.Storer, error) {
3131
}
3232

3333
func TestNilLoaderBackend(t *testing.T) {
34+
t.Parallel()
3435
h := NewBackend(nil)
3536
req := httptest.NewRequest("GET", "/", nil)
3637
w := httptest.NewRecorder()
@@ -78,9 +79,11 @@ e8d3ffab552895c19b9fcf7aa264d277cde33881 refs/remotes/origin/branch
7879
}
7980

8081
func TestDumbInfoRefs(t *testing.T) {
82+
t.Parallel()
8183
testInfoRefs(t, false)
8284
}
8385

8486
func TestSmartInfoRefs(t *testing.T) {
87+
t.Parallel()
8588
testInfoRefs(t, true)
8689
}

blame_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ type BlameSuite struct {
1616
}
1717

1818
func TestBlameSuite(t *testing.T) {
19+
t.Parallel()
1920
suite.Run(t, new(BlameSuite))
2021
}
2122

common_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ type SuiteCommon struct {
146146
}
147147

148148
func TestSuiteCommon(t *testing.T) {
149+
t.Parallel()
149150
suite.Run(t, new(SuiteCommon))
150151
}
151152

config/branch_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type BranchSuite struct {
1313
}
1414

1515
func TestBranchSuite(t *testing.T) {
16+
t.Parallel()
1617
suite.Run(t, new(BranchSuite))
1718
}
1819

config/config_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ type ConfigSuite struct {
2222
}
2323

2424
func TestConfigSuite(t *testing.T) {
25+
t.Parallel()
2526
suite.Run(t, new(ConfigSuite))
2627
}
2728

@@ -187,6 +188,7 @@ func (s *ConfigSuite) TestMarshal() {
187188
}
188189

189190
func TestUnmarshalMarshal(t *testing.T) {
191+
t.Parallel()
190192
tests := []struct {
191193
input string
192194
}{

config/modules_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type ModulesSuite struct {
1111
}
1212

1313
func TestModulesSuite(t *testing.T) {
14+
t.Parallel()
1415
suite.Run(t, new(ModulesSuite))
1516
}
1617

config/refspec_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type RefSpecSuite struct {
1414
}
1515

1616
func TestRefSpecSuite(t *testing.T) {
17+
t.Parallel()
1718
suite.Run(t, new(RefSpecSuite))
1819
}
1920

config/url_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ type URLSuite struct {
1111
}
1212

1313
func TestURLSuite(t *testing.T) {
14+
t.Parallel()
1415
suite.Run(t, new(URLSuite))
1516
}
1617

internal/revision/parser_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type ParserSuite struct {
1414
}
1515

1616
func TestParserSuite(t *testing.T) {
17+
t.Parallel()
1718
suite.Run(t, new(ParserSuite))
1819
}
1920

0 commit comments

Comments
 (0)