Skip to content

Commit 873db54

Browse files
authored
fix: enable more paralel tests lint check (#4914)
1 parent 0d36247 commit 873db54

File tree

4 files changed

+5
-10
lines changed

4 files changed

+5
-10
lines changed

.golangci.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ issues:
6262
- linters:
6363
- forbidigo
6464
path: cmd/bee/cmd
65-
text: "use of `fmt.Print" ## allow fmt.Print in cmd directory
65+
text: "use of `fmt.Print" ## allow fmt.Print in cmd directory
6666
- linters:
6767
- dogsled
6868
path: pkg/api/(.+)_test\.go # temporally disable dogsled in api test files
@@ -76,12 +76,3 @@ issues:
7676
- linters:
7777
- paralleltest
7878
path: pkg/log
79-
- linters:
80-
- paralleltest
81-
path: pkg/statestore
82-
- linters:
83-
- paralleltest
84-
path: pkg/storer
85-
- linters:
86-
- paralleltest
87-
path: pkg/storage

pkg/statestore/leveldb/leveldb_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
)
1515

1616
func TestPersistentStateStore(t *testing.T) {
17+
t.Parallel()
1718
test.Run(t, func(t *testing.T) storage.StateStorer {
1819
t.Helper()
1920

pkg/statestore/mock/store_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
)
1414

1515
func TestMockStateStore(t *testing.T) {
16+
t.Parallel()
1617
test.Run(t, func(t *testing.T) storage.StateStorer {
1718
t.Helper()
1819
return mock.NewStateStore()

pkg/storage/storage_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616

1717
func TestIdentityAddress(t *testing.T) {
1818
t.Run("single owner chunk", func(t *testing.T) {
19+
t.Parallel()
1920
// Create a single owner chunk (SOC)
2021
owner := common.HexToAddress("8d3766440f0d7b949a5e32995d09619a7f86e632")
2122
// signature of hash(id + chunk address of foo)
@@ -58,6 +59,7 @@ func TestIdentityAddress(t *testing.T) {
5859
})
5960

6061
t.Run("content addressed chunk", func(t *testing.T) {
62+
t.Parallel()
6163
// Create a content addressed chunk (CAC)
6264
data := []byte("data")
6365
cacChunk, err := cac.New(data)

0 commit comments

Comments
 (0)