From 35f55c5af5d7ad7c8774059ac0aad937cc62efff Mon Sep 17 00:00:00 2001 From: Denis Kirillov Date: Thu, 23 Jun 2022 16:54:02 +0300 Subject: [PATCH] [#539] Fix tests Signed-off-by: Denis Kirillov --- api/cache/objects_test.go | 2 ++ api/cache/objectslist_test.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/api/cache/objects_test.go b/api/cache/objects_test.go index 5136be6..2cbf127 100644 --- a/api/cache/objects_test.go +++ b/api/cache/objects_test.go @@ -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(), } } diff --git a/api/cache/objectslist_test.go b/api/cache/objectslist_test.go index 87ba269..672869c 100644 --- a/api/cache/objectslist_test.go +++ b/api/cache/objectslist_test.go @@ -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(), } }