mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-22 19:31:44 +00:00
fix test order in controller/openapi/builder/builderst.go
This commit is contained in:
parent
d98e9620e3
commit
df49c9f56f
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user