diff --git a/.golangci.yml b/.golangci.yml index 4e9d42a0380..cd8c61c8961 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 @@ -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 diff --git a/pkg/statestore/leveldb/leveldb_test.go b/pkg/statestore/leveldb/leveldb_test.go index fffd43ac5f1..dafa2d5f743 100644 --- a/pkg/statestore/leveldb/leveldb_test.go +++ b/pkg/statestore/leveldb/leveldb_test.go @@ -14,6 +14,7 @@ import ( ) func TestPersistentStateStore(t *testing.T) { + t.Parallel() test.Run(t, func(t *testing.T) storage.StateStorer { t.Helper() diff --git a/pkg/statestore/mock/store_test.go b/pkg/statestore/mock/store_test.go index 330261dbba5..524b48ece34 100644 --- a/pkg/statestore/mock/store_test.go +++ b/pkg/statestore/mock/store_test.go @@ -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() diff --git a/pkg/storage/storage_test.go b/pkg/storage/storage_test.go index 6ca04a8342f..b273d26c316 100644 --- a/pkg/storage/storage_test.go +++ b/pkg/storage/storage_test.go @@ -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) @@ -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)