fix patch_test for gofmt issue

Cherry-pick of ea7dff551f648d8a46087f59e40767216d00f60e

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 8ef165a5df45b6306e0a447694d5d917898b870a
This commit is contained in:
Davanum Srinivas 2022-07-26 10:12:54 -04:00 committed by Kubernetes Publisher
parent 83252f6eb6
commit 2216e0b1d5
1 changed files with 4 additions and 4 deletions

View File

@ -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))),