Unverified Commit 435bd611 authored by k8s-ci-robot's avatar k8s-ci-robot Committed by GitHub

Merge pull request #68354 from wgliang/fixbug/trim

fix wrong usage of strings.TrimLeft
parents 48e93c73 bcc1dd86
...@@ -458,7 +458,7 @@ var _ = SIGDescribe("Kubectl client", func() { ...@@ -458,7 +458,7 @@ var _ = SIGDescribe("Kubectl client", func() {
} }
// Verify the proxy server logs saw the connection // Verify the proxy server logs saw the connection
expectedProxyLog := fmt.Sprintf("Accepting CONNECT to %s", strings.TrimRight(strings.TrimLeft(framework.TestContext.Host, "https://"), "/api")) expectedProxyLog := fmt.Sprintf("Accepting CONNECT to %s", strings.TrimSuffix(strings.TrimPrefix(framework.TestContext.Host, "https://"), "/api"))
proxyLog := proxyLogs.String() proxyLog := proxyLogs.String()
if !strings.Contains(proxyLog, expectedProxyLog) { if !strings.Contains(proxyLog, expectedProxyLog) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment