mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 02:45:42 +03:00
Add TaskStates to mock.Alloc. Fixes some test race conditions
This commit is contained in:
@@ -235,6 +235,11 @@ func Alloc() *structs.Allocation {
|
||||
},
|
||||
},
|
||||
},
|
||||
TaskStates: map[string]*structs.TaskState{
|
||||
"web": &structs.TaskState{
|
||||
State: structs.TaskStatePending,
|
||||
},
|
||||
},
|
||||
Job: Job(),
|
||||
DesiredStatus: structs.AllocDesiredStatusRun,
|
||||
ClientStatus: structs.AllocClientStatusPending,
|
||||
|
||||
Reference in New Issue
Block a user