Make sure bad doesn't fail before web runs

This commit is contained in:
Michael Schurter 2016-08-25 17:25:51 -07:00
parent 139d2e7939
commit 592b898f43
1 changed files with 2 additions and 1 deletions

View File

@ -71,7 +71,8 @@ func TestAllocRunner_RetryArtifact(t *testing.T) {
alloc := mock.Alloc()
alloc.Job.Type = structs.JobTypeBatch
alloc.Job.TaskGroups[0].RestartPolicy.Attempts = 0
alloc.Job.TaskGroups[0].RestartPolicy.Attempts = 1
alloc.Job.TaskGroups[0].RestartPolicy.Delay = time.Duration(4*testutil.TestMultiplier()) * time.Second
// Create a new task with a bad artifact
badtask := alloc.Job.TaskGroups[0].Tasks[0].Copy()