forked from TrueCloudLab/frostfs-s3-gw
parent
7ca519cb32
commit
35f55c5af5
2 changed files with 4 additions and 0 deletions
2
api/cache/objects_test.go
vendored
2
api/cache/objects_test.go
vendored
|
@ -7,12 +7,14 @@ import (
|
|||
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
||||
objecttest "github.com/nspcc-dev/neofs-sdk-go/object/test"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
func getTestConfig() *Config {
|
||||
return &Config{
|
||||
Size: 10,
|
||||
Lifetime: 5 * time.Second,
|
||||
Logger: zap.NewExample(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
2
api/cache/objectslist_test.go
vendored
2
api/cache/objectslist_test.go
vendored
|
@ -8,6 +8,7 @@ import (
|
|||
oid "github.com/nspcc-dev/neofs-sdk-go/object/id"
|
||||
oidtest "github.com/nspcc-dev/neofs-sdk-go/object/id/test"
|
||||
"github.com/stretchr/testify/require"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
const testingCacheLifetime = 5 * time.Second
|
||||
|
@ -17,6 +18,7 @@ func getTestObjectsListConfig() *Config {
|
|||
return &Config{
|
||||
Size: testingCacheSize,
|
||||
Lifetime: testingCacheLifetime,
|
||||
Logger: zap.NewExample(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue