[#298] pkg/session/test: Set lifetime fields in Generate func

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2021-06-04 16:18:21 +03:00 committed by Leonard Lyubich
parent 779a61c97d
commit cc1163fd57

View file

@ -32,6 +32,9 @@ func Generate() *session.Token {
tok.SetID(uid) tok.SetID(uid)
tok.SetOwnerID(ownerID) tok.SetOwnerID(ownerID)
tok.SetSessionKey(keyBin) tok.SetSessionKey(keyBin)
tok.SetExp(11)
tok.SetNbf(22)
tok.SetIat(33)
return tok return tok
} }