From 8d3dc9e9ef794ff14d16cfbaf8b84e3c74121ff3 Mon Sep 17 00:00:00 2001 From: Andrea Tosatto Date: Tue, 26 Jan 2021 23:14:56 +0000 Subject: [PATCH] Run gofmt against staging/src/k8s.io/client-go/transport/round_trippers_test.go Kubernetes-commit: e87349f3caa810b96ed86fac7aec6bd0e73dacb1 --- transport/round_trippers_test.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/transport/round_trippers_test.go b/transport/round_trippers_test.go index 94d4630f..c55ac0f8 100644 --- a/transport/round_trippers_test.go +++ b/transport/round_trippers_test.go @@ -421,15 +421,15 @@ func TestDebuggingRoundTripper(t *testing.T) { rawUrl := "https://127.0.0.1:12345/api/v1/pods?limit=500" req := &http.Request{ - Method: http.MethodGet, + Method: http.MethodGet, Header: map[string][]string{ - "Authorization": []string{"bearer secretauthtoken"}, + "Authorization": []string{"bearer secretauthtoken"}, "X-Test-Request": []string{"test"}, }, } res := &http.Response{ - Status: "OK", - StatusCode: http.StatusOK, + Status: "OK", + StatusCode: http.StatusOK, Header: map[string][]string{ "X-Test-Response": []string{"test"}, }, @@ -439,7 +439,7 @@ func TestDebuggingRoundTripper(t *testing.T) { expectedOutputLines []string }{ { - levels: []DebugLevel{DebugJustURL}, + levels: []DebugLevel{DebugJustURL}, expectedOutputLines: []string{fmt.Sprintf("%s %s", req.Method, rawUrl)}, }, { @@ -470,15 +470,15 @@ func TestDebuggingRoundTripper(t *testing.T) { }(), }, { - levels: []DebugLevel{DebugURLTiming}, + levels: []DebugLevel{DebugURLTiming}, expectedOutputLines: []string{fmt.Sprintf("%s %s %s", req.Method, rawUrl, res.Status)}, }, { - levels: []DebugLevel{DebugResponseStatus}, + levels: []DebugLevel{DebugResponseStatus}, expectedOutputLines: []string{fmt.Sprintf("Response Status: %s", res.Status)}, }, { - levels: []DebugLevel{DebugCurlCommand}, + levels: []DebugLevel{DebugCurlCommand}, expectedOutputLines: []string{fmt.Sprintf("curl -k -v -X")}, }, }