Make sure bad doesn't fail before web runs
This commit is contained in:
parent
139d2e7939
commit
592b898f43
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue