fix proxy bug (#2146)

This commit is contained in:
zryfish
2020-06-02 14:26:31 +08:00
committed by GitHub
parent 68029de64c
commit 845887a325
3 changed files with 49 additions and 30 deletions

View File

@@ -263,7 +263,7 @@ func TestValidateKubeSphereEndpoint(t *testing.T) {
svr := httptest.NewServer(http.HandlerFunc(endpoint))
defer svr.Close()
got, err := validateKubeSphereAPIServer(svr.URL)
got, err := validateKubeSphereAPIServer(svr.URL, nil)
if err != nil {
t.Fatal(err)
}