Skip to content

Commit 78248d0

Browse files
committed
Fixed code formatting issues discovered by verify-gofmt
1 parent e70a630 commit 78248d0

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

staging/src/k8s.io/kubectl/pkg/cmd/describe/describe_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,15 @@ func TestDescribeHelpMessage(t *testing.T) {
248248
func TestDescribeNoResourcesFound(t *testing.T) {
249249
testNS := "testns"
250250
testCases := []struct {
251-
name string
252-
flags map[string]string
253-
namespace string
254-
expectedOutput string
255-
expectedErr string
251+
name string
252+
flags map[string]string
253+
namespace string
254+
expectedOutput string
255+
expectedErr string
256256
}{
257257
{
258258
name: "all namespaces",
259-
flags: map[string]string{"all-namespaces": "true"},
259+
flags: map[string]string{"all-namespaces": "true"},
260260
expectedOutput: "",
261261
expectedErr: "No resources found\n",
262262
},

staging/src/k8s.io/kubectl/pkg/cmd/top/top_pod_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -452,12 +452,12 @@ func TestTopPodWithMetricsServer(t *testing.T) {
452452
func TestTopPodNoResourcesFound(t *testing.T) {
453453
testNS := "testns"
454454
testCases := []struct {
455-
name string
456-
options *TopPodOptions
457-
namespace string
458-
expectedOutput string
459-
expectedErr string
460-
expectedPath string
455+
name string
456+
options *TopPodOptions
457+
namespace string
458+
expectedOutput string
459+
expectedErr string
460+
expectedPath string
461461
}{
462462
{
463463
name: "all namespaces",
@@ -501,7 +501,7 @@ func TestTopPodNoResourcesFound(t *testing.T) {
501501
return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: ioutil.NopCloser(bytes.NewReader([]byte(apibody)))}, nil
502502
case p == "/apis":
503503
return &http.Response{StatusCode: http.StatusOK, Header: cmdtesting.DefaultHeader(), Body: ioutil.NopCloser(bytes.NewReader([]byte(apisbodyWithMetrics)))}, nil
504-
case p == "/api/v1/namespaces/" + testNS + "/pods":
504+
case p == "/api/v1/namespaces/"+testNS+"/pods":
505505
// Top Pod calls this endpoint to check if there are pods whenever it gets no metrics,
506506
// so we need to return no pods for this test scenario
507507
body, _ := marshallBody(metricsv1alpha1api.PodMetricsList{

0 commit comments

Comments
 (0)