diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index 7256ab61eb3..fa97b132aa3 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -4226,7 +4226,7 @@ func OpenWebSocketForURL(url *url.URL, config *restclient.Config, protocols []st if err != nil { return nil, fmt.Errorf("Failed to create tls config: %v", err) } - if tlsConfig != nil { + if tlsConfig != nil || url.Scheme == "https" { url.Scheme = "wss" if !strings.Contains(url.Host, ":") { url.Host += ":443"