1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-27 14:57:05 +00:00

We need your help with translations into your native language.

Former-commit-id: 80e748ff4a8f17fe38dd6707f7686bae2acfcbfe
This commit is contained in:
Gerasimos (Makis) Maropoulos
2017-10-26 06:40:52 +03:00
parent a5440153c1
commit 6607008054
3 changed files with 11 additions and 11 deletions

View File

@@ -24,14 +24,6 @@ func TestProxy(t *testing.T) {
t.Fatalf("%v while parsing url", err)
}
// p := host.ProxyHandler(u)
// transport := &http.Transport{
// TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
// }
// p.Transport = transport
// proxySrv.Downgrade(p.ServeHTTP)
// go proxySrv.Run(iris.Addr(":80"), iris.WithoutBanner, iris.WithoutInterruptHandler)
proxy := host.NewProxy("", u)
addr := &net.TCPAddr{
@@ -68,7 +60,7 @@ func TestProxy(t *testing.T) {
t.Fatalf("%v while creating tcp4 listener for new tls local test listener", err)
}
// main server
go app.Run(iris.Listener(httptest.NewLocalTLSListener(l)), iris.WithoutBanner)
go app.Run(iris.Listener(httptest.NewLocalTLSListener(l)), iris.WithoutVersionChecker, iris.WithoutStartupLog)
e := httptest.NewInsecure(t, httptest.URL("http://"+listener.Addr().String()))
e.GET("/").Expect().Status(iris.StatusOK).Body().Equal(expectedIndex)