diff --git a/realis_e2e_test.go b/realis_e2e_test.go index 5a670c9..2599280 100644 --- a/realis_e2e_test.go +++ b/realis_e2e_test.go @@ -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