mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-10-30 17:58:14 +00:00
fix a flake of TestRoundTripTypes: for FirstAvailable[].AllocationMode
This commit is contained in:
@@ -39,6 +39,15 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
|
|||||||
}[c.Int31n(2)]
|
}[c.Int31n(2)]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
func(r *resource.DeviceSubRequest, c randfill.Continue) {
|
||||||
|
c.FillNoCustom(r) // fuzz self without calling this function again
|
||||||
|
if r.AllocationMode == "" {
|
||||||
|
r.AllocationMode = []resource.DeviceAllocationMode{
|
||||||
|
resource.DeviceAllocationModeAll,
|
||||||
|
resource.DeviceAllocationModeExactCount,
|
||||||
|
}[c.Int31n(2)]
|
||||||
|
}
|
||||||
|
},
|
||||||
func(r *resource.DeviceAllocationConfiguration, c randfill.Continue) {
|
func(r *resource.DeviceAllocationConfiguration, c randfill.Continue) {
|
||||||
c.FillNoCustom(r)
|
c.FillNoCustom(r)
|
||||||
if r.Source == "" {
|
if r.Source == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user