make sure all offers have the same size

This commit is contained in:
nhatle 2022-07-26 15:22:30 -07:00
parent 78c5c7d643
commit d0def1a936

View file

@ -1006,6 +1006,15 @@ func TestRealisClient_FitTasks(t *testing.T) {
}
}
// make sure all offers have the same size
for _, o := range offers {
for _, r := range o.Resources {
if r.Name == "cpus" {
assert.Equal(t, cpuPerOffer, r.Scalar.Value)
}
}
}
validCpu := cpuPerOffer / 2
inValidCpu := cpuPerOffer + 1
gpu := int64(1)