Fix test set up to set ModifyTime for alloc
This commit is contained in:
parent
19b096d203
commit
cba13e4ec5
|
@ -3695,6 +3695,7 @@ func TestStateStore_UpsertAlloc_Deployment(t *testing.T) {
|
|||
alloc := mock.Alloc()
|
||||
now := time.Now()
|
||||
alloc.CreateTime = now.UnixNano()
|
||||
alloc.ModifyTime = now.UnixNano()
|
||||
pdeadline := 5 * time.Minute
|
||||
deployment := mock.Deployment()
|
||||
deployment.TaskGroups[alloc.TaskGroup].ProgressDeadline = pdeadline
|
||||
|
|
Loading…
Reference in New Issue