Merge pull request #114570 from dengyufeng2206/1219pr

fix test order in controller/openapi/builder/builderst.go
This commit is contained in:
Kubernetes Prow Robot 2023-01-03 18:25:58 -08:00 committed by GitHub
commit 8fcad2ea7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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