diff --git a/app.go b/app.go index 2568e06dd8..cea6407a93 100644 --- a/app.go +++ b/app.go @@ -30,7 +30,7 @@ import ( ) // Version of current fiber package -const Version = "2.52.4" +const Version = "2.52.5" // Handler defines a function to serve HTTP requests. type Handler = func(*Ctx) error diff --git a/middleware/csrf/csrf_test.go b/middleware/csrf/csrf_test.go index a5f08d2541..d02661be91 100644 --- a/middleware/csrf/csrf_test.go +++ b/middleware/csrf/csrf_test.go @@ -88,7 +88,8 @@ func Test_CSRF_WithSession(t *testing.T) { // the session string is no longer be 123 newSessionIDString := sess.ID() - sess.Save() + err = sess.Save() + utils.AssertEqual(t, nil, err) app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString) @@ -223,7 +224,8 @@ func Test_CSRF_ExpiredToken_WithSession(t *testing.T) { // get session id newSessionIDString := sess.ID() - sess.Save() + err = sess.Save() + utils.AssertEqual(t, nil, err) app.AcquireCtx(ctx).Request().Header.SetCookie("_session", newSessionIDString) diff --git a/middleware/session/session_test.go b/middleware/session/session_test.go index 9b185c02f5..655d2c5718 100644 --- a/middleware/session/session_test.go +++ b/middleware/session/session_test.go @@ -30,7 +30,8 @@ func Test_Session(t *testing.T) { utils.AssertEqual(t, nil, err) utils.AssertEqual(t, true, sess.Fresh()) token := sess.ID() - sess.Save() + err = sess.Save() + utils.AssertEqual(t, nil, err) app.ReleaseCtx(ctx) ctx = app.AcquireCtx(&fasthttp.RequestCtx{})