nits
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
This commit is contained in:
parent
5177735b83
commit
cad8e2c4ed
|
@ -144,7 +144,7 @@ func VerifySessionContinuation(context *types.RequestContext, req *http.Request,
|
|||
http.SetCookie(resp, &http.Cookie{
|
||||
Name: "session",
|
||||
Value: "",
|
||||
MaxAge: 0, // reset session cookie in case
|
||||
MaxAge: 0,
|
||||
})
|
||||
|
||||
context.User = nil
|
||||
|
|
|
@ -276,7 +276,6 @@ func TestRefreshUpdatesExpiration(t *testing.T) {
|
|||
|
||||
updatedSession, _ := database.GetSession(db, cookies["session"].Value)
|
||||
|
||||
// if session expiration is greater than or equal to updated session expiration
|
||||
if session.ExpireAt.After(updatedSession.ExpireAt) || session.ExpireAt.Equal(updatedSession.ExpireAt) {
|
||||
t.Errorf("expected session expiration to be updated, got %s and %s", session.ExpireAt, updatedSession.ExpireAt)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue