Manager: fix broken unit test

This commit is contained in:
Sybren A. Stüvel 2022-04-15 14:37:41 +02:00
parent 13e3607571
commit de3c4af8cb

View File

@ -61,10 +61,12 @@ 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,
Id: dbJob.UUID,
Name: &dbJob.Name,
Priority: dbJob.Priority,
Status: dbJob.Status,
Type: dbJob.JobType,
Updated: dbJob.UpdatedAt,
}
mf.broadcaster.EXPECT().BroadcastNewJob(jobUpdate)