Manager: update tests for inclusion of job name in job updates
This commit is contained in:
parent
3078d22836
commit
89e130c04f
@ -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,
|
||||||
}
|
}
|
||||||
|
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user