mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
tests: fix TestAllocations_GarbageCollect
This commit is contained in:
@@ -216,10 +216,12 @@ func TestAllocations_GarbageCollect(t *testing.T) {
|
||||
|
||||
a := mock.Alloc()
|
||||
a.Job.TaskGroups[0].Tasks[0].Driver = "mock_driver"
|
||||
a.Job.TaskGroups[0].RestartPolicy = &nstructs.RestartPolicy{
|
||||
rp := &nstructs.RestartPolicy{
|
||||
Attempts: 0,
|
||||
Mode: nstructs.RestartPolicyModeFail,
|
||||
}
|
||||
a.Job.TaskGroups[0].RestartPolicy = rp
|
||||
a.Job.TaskGroups[0].Tasks[0].RestartPolicy = rp
|
||||
a.Job.TaskGroups[0].Tasks[0].Config = map[string]interface{}{
|
||||
"run_for": "10ms",
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user