replace conflicted 8080 port on SSL tests

This commit is contained in:
Umputun
2018-12-18 09:27:14 -06:00
parent 3a98d8593c
commit b54b23c236
+4 -4
View File
@@ -106,7 +106,7 @@ func TestRest_RunStaticSSLMode(t *testing.T) {
}
go func() {
srv.Run(8080)
srv.Run(38080)
}()
time.Sleep(100 * time.Millisecond) // let server start
@@ -123,7 +123,7 @@ func TestRest_RunStaticSSLMode(t *testing.T) {
},
}
resp, err := client.Get("http://localhost:8080/blah?param=1")
resp, err := client.Get("http://localhost:38080/blah?param=1")
require.Nil(t, err)
defer resp.Body.Close()
assert.Equal(t, 307, resp.StatusCode)
@@ -157,7 +157,7 @@ func TestRest_RunAutocertModeHTTPOnly(t *testing.T) {
go func() {
// can't check https server locally, just only http server
srv.Run(8080)
srv.Run(38081)
}()
time.Sleep(100 * time.Millisecond) // let server start
@@ -169,7 +169,7 @@ func TestRest_RunAutocertModeHTTPOnly(t *testing.T) {
},
}
resp, err := client.Get("http://localhost:8080/blah?param=1")
resp, err := client.Get("http://localhost:38081/blah?param=1")
require.Nil(t, err)
defer resp.Body.Close()
assert.Equal(t, 307, resp.StatusCode)