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