Another test fix

This commit is contained in:
Alex Dadgar 2016-02-02 15:35:25 -08:00
parent 9a79521999
commit e3587f5f24
1 changed files with 1 additions and 0 deletions

View File

@ -34,6 +34,7 @@ func testAllocRunner(restarts bool) (*MockAllocStateUpdater, *AllocRunner) {
consulClient, _ := NewConsulService(&consulServiceConfig{logger, "127.0.0.1:8500", "", "", false, false, &structs.Node{}})
if !restarts {
*alloc.Job.LookupTaskGroup(alloc.TaskGroup).RestartPolicy = structs.RestartPolicy{Attempts: 0}
alloc.Job.Type = structs.JobTypeBatch
}
ar := NewAllocRunner(logger, conf, upd.Update, alloc, consulClient)