1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-18 10:27:06 +00:00
Former-commit-id: 7b5d5530279789a3118190feb57776948b305662
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-06-07 21:07:08 +03:00
parent 9c92952a40
commit 7af5f139e0
40 changed files with 73 additions and 73 deletions

View File

@@ -92,7 +92,7 @@ func testSessions(t *testing.T, sess *sessions.Sessions, app *iris.Application)
d := e.GET("/destroy").Expect().Status(iris.StatusOK)
d.JSON().Object().Empty()
// This removed: d.Cookies().Empty(). Reason:
// httpexpect counts the cookies setted or deleted at the response time, but cookie is not removed, to be really removed needs to SetExpire(now-1second) so,
// httpexpect counts the cookies set or deleted at the response time, but cookie is not removed, to be really removed needs to SetExpire(now-1second) so,
// test if the cookies removed on the next request, like the browser's behavior.
e.GET("/after_destroy").Expect().Status(iris.StatusOK).Cookies().Empty()
// set and clear again