integration: Fix tests
This commit is contained in:
parent
79968c6374
commit
7972593586
|
@ -116,8 +116,6 @@ func newServerTesterInternal(src_args []string, t *testing.T, handler http.Handl
|
||||||
if frontendTLS {
|
if frontendTLS {
|
||||||
scheme = "https"
|
scheme = "https"
|
||||||
args = append(args, testDir+"/server.key", testDir+"/server.crt")
|
args = append(args, testDir+"/server.key", testDir+"/server.crt")
|
||||||
} else {
|
|
||||||
args = append(args, "--frontend-no-tls")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
backendURL, err := url.Parse(ts.URL)
|
backendURL, err := url.Parse(ts.URL)
|
||||||
|
@ -129,9 +127,15 @@ func newServerTesterInternal(src_args []string, t *testing.T, handler http.Handl
|
||||||
// "127.0.0.1,8080"
|
// "127.0.0.1,8080"
|
||||||
b := "-b" + strings.Replace(backendURL.Host, ":", ",", -1)
|
b := "-b" + strings.Replace(backendURL.Host, ":", ",", -1)
|
||||||
if backendTLS {
|
if backendTLS {
|
||||||
b += ";;proto=h2"
|
b += ";;proto=h2;tls"
|
||||||
}
|
}
|
||||||
args = append(args, fmt.Sprintf("-f127.0.0.1,%v", serverPort), b,
|
|
||||||
|
noTLS := "no-tls"
|
||||||
|
if frontendTLS {
|
||||||
|
noTLS = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
args = append(args, fmt.Sprintf("-f127.0.0.1,%v;%v", serverPort, noTLS), b,
|
||||||
"--errorlog-file="+logDir+"/log.txt", "-LINFO")
|
"--errorlog-file="+logDir+"/log.txt", "-LINFO")
|
||||||
|
|
||||||
authority := fmt.Sprintf("127.0.0.1:%v", serverPort)
|
authority := fmt.Sprintf("127.0.0.1:%v", serverPort)
|
||||||
|
|
Loading…
Reference in New Issue