mirror of
https://github.com/kataras/iris.git
synced 2025-03-21 12:26:27 +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 := 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)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user