mirror of
https://github.com/kataras/iris.git
synced 2025-12-18 02:17:05 +00:00
Update to 7.2.0. Read https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-june-2017--v720
Fix https://github.com/iris-contrib/community-board/issues/12 . Read more: https://github.com/kataras/iris/blob/master/HISTORY.md#th-15-june-2017--v720 Former-commit-id: 398cb69fdc7e5367b147693371287ffb7b912feb
This commit is contained in:
@@ -25,7 +25,7 @@ func TestFromStd(t *testing.T) {
|
||||
app.Get("/handler", h)
|
||||
app.Get("/func", hFunc)
|
||||
|
||||
e := httptest.New(app, t)
|
||||
e := httptest.New(t, app)
|
||||
|
||||
e.GET("/handler").
|
||||
Expect().Status(iris.StatusOK).Body().Equal(expected)
|
||||
@@ -56,7 +56,7 @@ func TestFromStdWithNext(t *testing.T) {
|
||||
app := iris.New()
|
||||
app.Get("/handlerwithnext", h, next)
|
||||
|
||||
e := httptest.New(app, t)
|
||||
e := httptest.New(t, app)
|
||||
|
||||
e.GET("/handlerwithnext").
|
||||
Expect().Status(iris.StatusForbidden)
|
||||
|
||||
Reference in New Issue
Block a user