From df49c9f56f058e61c1974b02a78705b772f62ed2 Mon Sep 17 00:00:00 2001 From: dengyufeng2206 Date: Mon, 19 Dec 2022 09:20:06 +0800 Subject: [PATCH] fix test order in controller/openapi/builder/builderst.go --- .../pkg/controller/openapi/builder/builder_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go b/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go index ff8004cbdde..ead09e2fadb 100644 --- a/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go +++ b/staging/src/k8s.io/apiextensions-apiserver/pkg/controller/openapi/builder/builder_test.go @@ -539,9 +539,9 @@ func TestCRDRouteParameterBuilder(t *testing.T) { } if action == "patch" { expected := []string{"application/json-patch+json", "application/merge-patch+json", "application/apply-patch+yaml"} - assert.Equal(t, operation.Consumes, expected) + assert.Equal(t, expected, operation.Consumes) } else { - assert.Equal(t, operation.Consumes, []string{"application/json", "application/yaml"}) + assert.Equal(t, []string{"application/json", "application/yaml"}, operation.Consumes) } } }