[#539] Fix tests

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
This commit is contained in:
Denis Kirillov 2022-06-23 16:54:02 +03:00 committed by Kira
parent 7ca519cb32
commit 35f55c5af5
2 changed files with 4 additions and 0 deletions

View file

@ -7,12 +7,14 @@ import (
oid "github.com/nspcc-dev/neofs-sdk-go/object/id" oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
objecttest "github.com/nspcc-dev/neofs-sdk-go/object/test" objecttest "github.com/nspcc-dev/neofs-sdk-go/object/test"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.uber.org/zap"
) )
func getTestConfig() *Config { func getTestConfig() *Config {
return &Config{ return &Config{
Size: 10, Size: 10,
Lifetime: 5 * time.Second, Lifetime: 5 * time.Second,
Logger: zap.NewExample(),
} }
} }

View file

@ -8,6 +8,7 @@ import (
oid "github.com/nspcc-dev/neofs-sdk-go/object/id" oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
oidtest "github.com/nspcc-dev/neofs-sdk-go/object/id/test" oidtest "github.com/nspcc-dev/neofs-sdk-go/object/id/test"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"
"go.uber.org/zap"
) )
const testingCacheLifetime = 5 * time.Second const testingCacheLifetime = 5 * time.Second
@ -17,6 +18,7 @@ func getTestObjectsListConfig() *Config {
return &Config{ return &Config{
Size: testingCacheSize, Size: testingCacheSize,
Lifetime: testingCacheLifetime, Lifetime: testingCacheLifetime,
Logger: zap.NewExample(),
} }
} }