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:
Gerasimos (Makis) Maropoulos 2017-02-07 03:01:26 +02:00
parent 5aaec72634
commit 84f61f6b05
2 changed files with 2 additions and 1 deletions

View File

@ -58,6 +58,7 @@ editors worked before but I couldn't let some developers without support.
- IMPROVEMENT: Now you're able to pass an `func(http.ResponseWriter, *http.Request, http.HandlerFunc)` third-party net/http middleware(Chain-of-responsibility pattern) using the `iris.ToHandler` wrapper func without any other custom boilerplate.
- IMPROVEMENT: [Sessions manager](https://github.com/kataras/go-sessions) works even faster now.
* Change: `context.Session().GetAll()` returns an empty map instead of nil when session has no values.
## 6.1.2 -> 6.1.3

View File

@ -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.