From c7edbd5f41b61108243bed0f000fe8af19d27e82 Mon Sep 17 00:00:00 2001 From: Preetha Appan Date: Fri, 4 May 2018 13:06:54 -0500 Subject: [PATCH] newlines in test --- nomad/deploymentwatcher/deployments_watcher_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nomad/deploymentwatcher/deployments_watcher_test.go b/nomad/deploymentwatcher/deployments_watcher_test.go index b469c84e2..1221a7a04 100644 --- a/nomad/deploymentwatcher/deployments_watcher_test.go +++ b/nomad/deploymentwatcher/deployments_watcher_test.go @@ -979,6 +979,7 @@ func TestDeploymentWatcher_PromotedCanary_UpdatedAllocs(t *testing.T) { j.TaskGroups[0].Update.MaxParallel = 1 j.TaskGroups[0].Update.ProgressDeadline = 50 * time.Millisecond j.Stable = true + d := mock.Deployment() d.TaskGroups["web"].DesiredTotal = 2 d.TaskGroups["web"].DesiredCanaries = 1 @@ -987,6 +988,7 @@ func TestDeploymentWatcher_PromotedCanary_UpdatedAllocs(t *testing.T) { d.JobID = j.ID d.TaskGroups["web"].ProgressDeadline = 50 * time.Millisecond d.TaskGroups["web"].RequireProgressBy = time.Now().Add(50 * time.Millisecond) + a := mock.Alloc() now := time.Now() a.CreateTime = now.UnixNano()