newlines in test
This commit is contained in:
parent
4e75456beb
commit
c7edbd5f41
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue