From ea7dff551f648d8a46087f59e40767216d00f60e Mon Sep 17 00:00:00 2001 From: Davanum Srinivas Date: Tue, 26 Jul 2022 10:12:54 -0400 Subject: [PATCH] fix patch_test for gofmt issue Signed-off-by: Davanum Srinivas --- .../k8s.io/apiserver/pkg/util/flowcontrol/patch_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/patch_test.go b/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/patch_test.go index b468b6d3b0d..f3246ee13ff 100644 --- a/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/patch_test.go +++ b/staging/src/k8s.io/apiserver/pkg/util/flowcontrol/patch_test.go @@ -59,10 +59,10 @@ func Test_configController_generatePatchBytes(t *testing.T) { { name: "check when message has a whitespace character that can be escaped", condition: flowcontrol.FlowSchemaCondition{ - Type: flowcontrol.FlowSchemaConditionDangling, - Status: flowcontrol.ConditionTrue, - Reason: "test reason", - Message: `test none`, + Type: flowcontrol.FlowSchemaConditionDangling, + Status: flowcontrol.ConditionTrue, + Reason: "test reason", + Message: "test \u0009\u0009none", LastTransitionTime: metav1.NewTime(now), }, want: []byte(fmt.Sprintf(`{"status":{"conditions":[{"type":"Dangling","status":"True","lastTransitionTime":"%s","reason":"test reason","message":"test \t\tnone"}]}}`, now.Format(time.RFC3339))),