mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
Look HISTORY.md for the 6.1.4 improvements. Fix sessions test expect a nil json instead of an empty.
This commit is contained in:
@@ -532,7 +532,7 @@ func TestContextSessions(t *testing.T) {
|
||||
|
||||
// test destroy which also clears first
|
||||
d := e.GET("/destroy").Expect().Status(iris.StatusOK)
|
||||
d.JSON().Null()
|
||||
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,
|
||||
// test if the cookies removed on the next request, like the browser's behavior.
|
||||
|
||||
Reference in New Issue
Block a user