Fixed code formatting issues discovered by verify-gofmt
Kubernetes-commit: 78248d0c2aaca258b4210446dc38c096e83a1eb6
This commit is contained in:
parent
445baa99d2
commit
09eaf230cc
|
|
@ -501,7 +501,7 @@ func TestTopPodNoResourcesFound(t *testing.T) {
|
|||
return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: ioutil.NopCloser(bytes.NewReader([]byte(apibody)))}, nil
|
||||
case p == "/apis":
|
||||
return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: ioutil.NopCloser(bytes.NewReader([]byte(apisbodyWithMetrics)))}, nil
|
||||
case p == "/api/v1/namespaces/" + testNS + "/pods":
|
||||
case p == "/api/v1/namespaces/"+testNS+"/pods":
|
||||
// Top Pod calls this endpoint to check if there are pods whenever it gets no metrics,
|
||||
// so we need to return no pods for this test scenario
|
||||
body, _ := marshallBody(metricsv1alpha1api.PodMetricsList{
|
||||
|
|
|
|||
Loading…
Reference in New Issue