Skip to content

Commit

Permalink
fix: enable more paralel tests lint check (#4914)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinconic authored Nov 28, 2024
1 parent 0d36247 commit 873db54
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 10 deletions.
11 changes: 1 addition & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ issues:
- linters:
- forbidigo
path: cmd/bee/cmd
text: "use of `fmt.Print" ## allow fmt.Print in cmd directory
text: "use of `fmt.Print" ## allow fmt.Print in cmd directory
- linters:
- dogsled
path: pkg/api/(.+)_test\.go # temporally disable dogsled in api test files
Expand All @@ -76,12 +76,3 @@ issues:
- linters:
- paralleltest
path: pkg/log
- linters:
- paralleltest
path: pkg/statestore
- linters:
- paralleltest
path: pkg/storer
- linters:
- paralleltest
path: pkg/storage
1 change: 1 addition & 0 deletions pkg/statestore/leveldb/leveldb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import (
)

func TestPersistentStateStore(t *testing.T) {
t.Parallel()
test.Run(t, func(t *testing.T) storage.StateStorer {
t.Helper()

Expand Down
1 change: 1 addition & 0 deletions pkg/statestore/mock/store_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import (
)

func TestMockStateStore(t *testing.T) {
t.Parallel()
test.Run(t, func(t *testing.T) storage.StateStorer {
t.Helper()
return mock.NewStateStore()
Expand Down
2 changes: 2 additions & 0 deletions pkg/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (

func TestIdentityAddress(t *testing.T) {
t.Run("single owner chunk", func(t *testing.T) {
t.Parallel()
// Create a single owner chunk (SOC)
owner := common.HexToAddress("8d3766440f0d7b949a5e32995d09619a7f86e632")
// signature of hash(id + chunk address of foo)
Expand Down Expand Up @@ -58,6 +59,7 @@ func TestIdentityAddress(t *testing.T) {
})

t.Run("content addressed chunk", func(t *testing.T) {
t.Parallel()
// Create a content addressed chunk (CAC)
data := []byte("data")
cacChunk, err := cac.New(data)
Expand Down

0 comments on commit 873db54

Please sign in to comment.