mirror of
https://github.com/project-zot/zot.git
synced 2026-06-19 14:08:01 +08:00
fix(sessions): periodically cleanup expired sessions (#1939)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -3409,7 +3409,7 @@ func TestAuthnSessionErrors(t *testing.T) {
|
||||
session.IsNew = false
|
||||
session.Values["authStatus"] = true
|
||||
|
||||
cookieStore, ok := ctlr.CookieStore.(*sessions.FilesystemStore)
|
||||
cookieStore, ok := ctlr.CookieStore.Store.(*sessions.FilesystemStore)
|
||||
So(ok, ShouldBeTrue)
|
||||
|
||||
// first encode sessionID
|
||||
@@ -3450,7 +3450,7 @@ func TestAuthnSessionErrors(t *testing.T) {
|
||||
session.Values["authStatus"] = false
|
||||
session.Values["username"] = username
|
||||
|
||||
cookieStore, ok := ctlr.CookieStore.(*sessions.FilesystemStore)
|
||||
cookieStore, ok := ctlr.CookieStore.Store.(*sessions.FilesystemStore)
|
||||
So(ok, ShouldBeTrue)
|
||||
|
||||
// first encode sessionID
|
||||
|
||||
Reference in New Issue
Block a user