mirror of
https://github.com/kataras/iris.git
synced 2025-01-23 10:41:03 +01:00
update TestProxy
This commit is contained in:
parent
b6ebc39b9e
commit
93fa23befa
|
@ -64,6 +64,6 @@ func TestProxy(t *testing.T) {
|
|||
|
||||
e := httptest.NewInsecure(t, httptest.URL("http://"+listener.Addr().String()))
|
||||
e.GET("/").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)
|
||||
e.GET("/about").Expect().Status(iris.StatusOK).Body().Equal(expectedAbout)
|
||||
e.GET("/notfound").Expect().Status(iris.StatusNotFound).Body().Equal(unexpectedRoute)
|
||||
e.GET("/about").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)
|
||||
e.GET("/notfound").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user