[#137] pool: fix tests

Description

Signed-off-by: Denis Kirillov <denis@nspcc.ru>
remotes/fyrchik/split-info-format
Denis Kirillov 2022-03-24 17:02:33 +03:00 committed by Alex Vanin
parent 7df00fb0eb
commit 9814748958
2 changed files with 6 additions and 1 deletions

View File

@ -16,7 +16,10 @@ func TestSessionCache_GetAccessTime(t *testing.T) {
cache, err := newCache()
require.NoError(t, err)
cache.Put(key, nil)
st := session.NewToken()
st.SetExp(1)
cache.Put(key, st)
t1, ok := cache.GetAccessTime(key)
require.True(t, ok)

View File

@ -538,6 +538,8 @@ func newToken(t *testing.T) *session.Token {
}
func TestSessionTokenOwner(t *testing.T) {
t.Skip("NeoFS API client can't be mocked")
ctrl := gomock.NewController(t)
clientBuilder := func(_ string) (client, error) {
mockClient := NewMockClient(ctrl)