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:
parent
edd9890518
commit
37dd02e4cb
@ -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()
|
||||
|
||||
// TODO make sure cookie exists
|
||||
// fmt.Println(string(ctx.Response().Header.PeekCookie("session_id")))
|
||||
|
||||
// delete cookie
|
||||
// sess.deleteCookie()
|
||||
// // get session
|
||||
// sess, _ := store.Get(ctx)
|
||||
// sess.Save()
|
||||
|
||||
// TODO make sure cookie does not exist
|
||||
}
|
||||
// // TODO make sure cookie exists
|
||||
// // fmt.Println(string(ctx.Response().Header.PeekCookie("session_id")))
|
||||
|
||||
// // delete cookie
|
||||
// // sess.deleteCookie()
|
||||
// // sess.Save()
|
||||
|
||||
// // TODO make sure cookie does not exist
|
||||
// }
|
||||
|
Loading…
x
Reference in New Issue
Block a user