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. // Expect the new job to be broadcast.
jobUpdate := api.JobUpdate{ jobUpdate := api.JobUpdate{
Id: dbJob.UUID, Id: dbJob.UUID,
Name: &dbJob.Name,
Updated: dbJob.UpdatedAt, Updated: dbJob.UpdatedAt,
Status: dbJob.Status, Status: dbJob.Status,
} }

View File

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