1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-09 13:05:56 +00:00

update TestProxy

This commit is contained in:
tuhao
2021-01-11 17:03:22 +08:00
parent b6ebc39b9e
commit 93fa23befa

View File

@@ -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)
}