1
0
mirror of https://github.com/gofiber/fiber.git synced 2025-02-23 10:03:45 +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
func Test_Session_Cookie(t *testing.T) {
t.Parallel()
// session store
store := New()
// fiber instance
app := fiber.New()
// fiber context
ctx := app.AcquireCtx(&fasthttp.RequestCtx{})
defer app.ReleaseCtx(ctx)
// func Test_Session_Cookie(t *testing.T) {
// t.Parallel()
// // session store
// store := New()
// // fiber instance
// app := fiber.New()
// // fiber context
// ctx := app.AcquireCtx(&fasthttp.RequestCtx{})
// defer app.ReleaseCtx(ctx)
// get session
sess, _ := store.Get(ctx)
sess.Save()
// // get session
// sess, _ := store.Get(ctx)
// sess.Save()
// TODO make sure cookie exists
// fmt.Println(string(ctx.Response().Header.PeekCookie("session_id")))
// // TODO make sure cookie exists
// // fmt.Println(string(ctx.Response().Header.PeekCookie("session_id")))
// delete cookie
// sess.deleteCookie()
// sess.Save()
// // delete cookie
// // sess.deleteCookie()
// // sess.Save()
// TODO make sure cookie does not exist
}
// // TODO make sure cookie does not exist
// }