Manager: fix broken unit test
This commit is contained in:
parent
13e3607571
commit
de3c4af8cb
@ -61,10 +61,12 @@ 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,
|
Name: &dbJob.Name,
|
||||||
Updated: dbJob.UpdatedAt,
|
Priority: dbJob.Priority,
|
||||||
Status: dbJob.Status,
|
Status: dbJob.Status,
|
||||||
|
Type: dbJob.JobType,
|
||||||
|
Updated: dbJob.UpdatedAt,
|
||||||
}
|
}
|
||||||
mf.broadcaster.EXPECT().BroadcastNewJob(jobUpdate)
|
mf.broadcaster.EXPECT().BroadcastNewJob(jobUpdate)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user