make sure all offers have the same size

This commit is contained in:
nhatle 2022-07-26 15:46:19 -07:00
parent d0def1a936
commit 636728d8dd

View file

@ -1006,13 +1006,9 @@ func TestRealisClient_FitTasks(t *testing.T) {
}
}
// make sure all offers have the same size
// make sure all offers have no running executor
for _, o := range offers {
for _, r := range o.Resources {
if r.Name == "cpus" {
assert.Equal(t, cpuPerOffer, r.Scalar.Value)
}
}
assert.Equal(t, o.ExecutorIds[:0], o.ExecutorIds)
}
validCpu := cpuPerOffer / 2