diff --git a/pkg/storage/fs/posix/testhelpers/helpers.go b/pkg/storage/fs/posix/testhelpers/helpers.go index 2dff5e2807..0f00229765 100644 --- a/pkg/storage/fs/posix/testhelpers/helpers.go +++ b/pkg/storage/fs/posix/testhelpers/helpers.go @@ -25,6 +25,7 @@ import ( "path/filepath" "github.com/google/uuid" + "github.com/rs/zerolog" "github.com/stretchr/testify/mock" "google.golang.org/grpc" @@ -177,12 +178,14 @@ func NewTestEnv(config map[string]interface{}) (*TestEnv, error) { }, ) + logger := zerolog.New(os.Stderr).With().Logger() + bs := &treemocks.Blobstore{} - tree, err := tree.New(lu, bs, um, &trashbin.Trashbin{}, o, nil, store.Create(), nil) + tree, err := tree.New(lu, bs, um, &trashbin.Trashbin{}, o, nil, store.Create(), &logger) if err != nil { return nil, err } - tb, err := trashbin.New(o, lu, nil) + tb, err := trashbin.New(o, lu, &logger) if err != nil { return nil, err }