Fixing monitor to only expect one instance since limit constraint will not allow a second one to be scheduled on the same box.

This commit is contained in:
Renan DelValle 2020-01-14 17:29:09 -08:00
parent 3565a9f233
commit ed774b6a0c
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9

View file

@ -333,7 +333,7 @@ func TestRealisClient_CreateJob_Thermos(t *testing.T) {
_, err := r.CreateJob(job)
require.NoError(t, err)
success, err := monitor.Instances(job.JobKey(), 2, 1, 50)
success, err := monitor.Instances(job.JobKey(), 1, 1, 50)
assert.True(t, success)
assert.NoError(t, err)