Bug fix for auto paused update monitor

Returns success if the update has finished updating successfully.
This commit is contained in:
Renán Del Valle 2021-08-06 15:45:37 -07:00
parent dbc396b0db
commit f2bdc77891
No known key found for this signature in database
GPG key ID: C240AD6D6F443EC9
2 changed files with 6 additions and 3 deletions

View file

@ -1059,8 +1059,10 @@ func TestRealisClient_BatchAwareAutoPause(t *testing.T) {
assert.Equal(t, i, curStep)
_, err = r.ResumeJobUpdate(&key, "auto resuming test")
require.NoError(t, err)
if i != len(updateGroups)-1 {
_, err = r.ResumeJobUpdate(&key, "auto resuming test")
require.NoError(t, err)
}
}
_, err = r.KillJob(job.JobKey())