1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 19:23:48 +00:00

Comment out TODO test

This commit is contained in:
hi019 2020-11-13 00:06:27 -05:00
parent edd9890518
commit 37dd02e4cb

View File

@ -155,26 +155,26 @@ func Test_Session_Custom_Config(t *testing.T) {
} }
// TODO // TODO
func Test_Session_Cookie(t *testing.T) { // func Test_Session_Cookie(t *testing.T) {
t.Parallel() // t.Parallel()
// session store // // session store
store := New() // store := New()
// fiber instance // // fiber instance
app := fiber.New() // app := fiber.New()
// fiber context // // fiber context
ctx := app.AcquireCtx(&fasthttp.RequestCtx{}) // ctx := app.AcquireCtx(&fasthttp.RequestCtx{})
defer app.ReleaseCtx(ctx) // defer app.ReleaseCtx(ctx)
// get session // // get session
sess, _ := store.Get(ctx) // sess, _ := store.Get(ctx)
sess.Save() // sess.Save()
// TODO make sure cookie exists // // TODO make sure cookie exists
// fmt.Println(string(ctx.Response().Header.PeekCookie("session_id"))) // // fmt.Println(string(ctx.Response().Header.PeekCookie("session_id")))
// delete cookie // // delete cookie
// sess.deleteCookie() // // sess.deleteCookie()
// sess.Save() // // sess.Save()
// TODO make sure cookie does not exist // // TODO make sure cookie does not exist
} // }