make sure all offers have the same size
This commit is contained in:
parent
d0def1a936
commit
636728d8dd
1 changed files with 2 additions and 6 deletions
|
@ -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 _, o := range offers {
|
||||||
for _, r := range o.Resources {
|
assert.Equal(t, o.ExecutorIds[:0], o.ExecutorIds)
|
||||||
if r.Name == "cpus" {
|
|
||||||
assert.Equal(t, cpuPerOffer, r.Scalar.Value)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
validCpu := cpuPerOffer / 2
|
validCpu := cpuPerOffer / 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue