Skip to content

Commit

Permalink
fix linter issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ssd04 committed Mar 22, 2024
1 parent 4967f79 commit fefbcab
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 26 deletions.
5 changes: 0 additions & 5 deletions process/blocksPool_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ import (
"github.com/stretchr/testify/require"
)

type testStruct struct {
s string
a, b int
}

func TestNewBlocksPool(t *testing.T) {
t.Parallel()

Expand Down
42 changes: 21 additions & 21 deletions process/pruningStorer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestNewPruningStorer(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand All @@ -118,9 +118,9 @@ func TestNewPruningStorer(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "1"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "2"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "1"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "2"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand All @@ -145,10 +145,10 @@ func TestPruningStorer_getPersisterPaths(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "1"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "2"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "1"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "2"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down Expand Up @@ -179,8 +179,8 @@ func TestPruningStorer_Get(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down Expand Up @@ -212,8 +212,8 @@ func TestPruningStorer_Get(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down Expand Up @@ -257,8 +257,8 @@ func TestPruningStorer_Get(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down Expand Up @@ -299,8 +299,8 @@ func TestPruningStorer_Put(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down Expand Up @@ -349,7 +349,7 @@ func TestPruningStorer_Prune(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down Expand Up @@ -392,10 +392,10 @@ func TestPruningStorer_Prune(t *testing.T) {

tmpPath := t.TempDir()

os.MkdirAll(filepath.Join(tmpPath, "1"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "2"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "1"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "2"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "4"), os.ModePerm)
_ = os.MkdirAll(filepath.Join(tmpPath, "3"), os.ModePerm)

dbConfig := config.DBConfig{
FilePath: tmpPath,
Expand Down

0 comments on commit fefbcab

Please sign in to comment.