1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-10 21:45:57 +00:00

Add support for more than one listening server to one station, virtual and no virtual

This commit is contained in:
Makis Maropoulos
2016-07-06 20:24:34 +02:00
parent d76b73427b
commit 2cc75817b7
12 changed files with 674 additions and 390 deletions

View File

@@ -16,12 +16,12 @@ const (
)
func testSubdomainHost() string {
return testSubdomain + strconv.Itoa(HTTPServer.Port())
return testSubdomain + strconv.Itoa(Servers.Main().Port())
}
func testSubdomainURL() (subdomainURL string) {
subdomainHost := testSubdomainHost()
if HTTPServer.IsSecure() {
if Servers.Main().IsSecure() {
subdomainURL = "https://" + subdomainHost
} else {
subdomainURL = "http://" + subdomainHost
@@ -159,7 +159,7 @@ func TestMuxSimpleParty(t *testing.T) {
request := func(reqPath string) {
e.Request("GET", reqPath).
Expect().
Status(StatusOK).Body().Equal(HTTPServer.Host() + reqPath)
Status(StatusOK).Body().Equal(Servers.Main().Host() + reqPath)
}
// run the tests