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

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