mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
Merge pull request #68354 from wgliang/fixbug/trim
fix wrong usage of strings.TrimLeft
This commit is contained in:
commit
435bd61145
@ -458,7 +458,7 @@ var _ = SIGDescribe("Kubectl client", func() {
|
||||
}
|
||||
|
||||
// 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()
|
||||
if !strings.Contains(proxyLog, expectedProxyLog) {
|
||||
|
Loading…
Reference in New Issue
Block a user