Fix test set up to set ModifyTime for alloc

This commit is contained in:
Preetha Appan 2018-05-02 19:22:45 -05:00
parent 19b096d203
commit cba13e4ec5
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 1 additions and 0 deletions

View File

@ -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