Manager: update tests for inclusion of job name in job updates

This commit is contained in:
Sybren A. Stüvel 2022-04-08 11:59:30 +02:00
parent 3078d22836
commit 89e130c04f
2 changed files with 2 additions and 0 deletions

View File

@ -62,6 +62,7 @@ func TestSubmitJob(t *testing.T) {
// Expect the new job to be broadcast.
jobUpdate := api.JobUpdate{
Id: dbJob.UUID,
Name: &dbJob.Name,
Updated: dbJob.UpdatedAt,
Status: dbJob.Status,
}

View File

@ -288,6 +288,7 @@ func (m *StateMachineMocks) expectBroadcastJobChange(
) *gomock.Call {
expectUpdate := api.JobUpdate{
Id: job.UUID,
Name: &job.Name,
Updated: job.UpdatedAt,
PreviousStatus: &fromStatus,
Status: toStatus,