make sure all offers have the same size
This commit is contained in:
parent
78c5c7d643
commit
d0def1a936
1 changed files with 9 additions and 0 deletions
|
@ -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
|
validCpu := cpuPerOffer / 2
|
||||||
inValidCpu := cpuPerOffer + 1
|
inValidCpu := cpuPerOffer + 1
|
||||||
gpu := int64(1)
|
gpu := int64(1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue