newlines in test

This commit is contained in:
Preetha Appan 2018-05-04 13:06:54 -05:00
parent 4e75456beb
commit c7edbd5f41
No known key found for this signature in database
GPG Key ID: 9F7C19990A50EAFC
1 changed files with 2 additions and 0 deletions

View File

@ -979,6 +979,7 @@ func TestDeploymentWatcher_PromotedCanary_UpdatedAllocs(t *testing.T) {
j.TaskGroups[0].Update.MaxParallel = 1 j.TaskGroups[0].Update.MaxParallel = 1
j.TaskGroups[0].Update.ProgressDeadline = 50 * time.Millisecond j.TaskGroups[0].Update.ProgressDeadline = 50 * time.Millisecond
j.Stable = true j.Stable = true
d := mock.Deployment() d := mock.Deployment()
d.TaskGroups["web"].DesiredTotal = 2 d.TaskGroups["web"].DesiredTotal = 2
d.TaskGroups["web"].DesiredCanaries = 1 d.TaskGroups["web"].DesiredCanaries = 1
@ -987,6 +988,7 @@ func TestDeploymentWatcher_PromotedCanary_UpdatedAllocs(t *testing.T) {
d.JobID = j.ID d.JobID = j.ID
d.TaskGroups["web"].ProgressDeadline = 50 * time.Millisecond d.TaskGroups["web"].ProgressDeadline = 50 * time.Millisecond
d.TaskGroups["web"].RequireProgressBy = time.Now().Add(50 * time.Millisecond) d.TaskGroups["web"].RequireProgressBy = time.Now().Add(50 * time.Millisecond)
a := mock.Alloc() a := mock.Alloc()
now := time.Now() now := time.Now()
a.CreateTime = now.UnixNano() a.CreateTime = now.UnixNano()