We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55db937 commit 8083022Copy full SHA for 8083022
client/alloc_endpoint_test.go
@@ -216,10 +216,12 @@ func TestAllocations_GarbageCollect(t *testing.T) {
216
217
a := mock.Alloc()
218
a.Job.TaskGroups[0].Tasks[0].Driver = "mock_driver"
219
- a.Job.TaskGroups[0].RestartPolicy = &nstructs.RestartPolicy{
+ rp := &nstructs.RestartPolicy{
220
Attempts: 0,
221
Mode: nstructs.RestartPolicyModeFail,
222
}
223
+ a.Job.TaskGroups[0].RestartPolicy = rp
224
+ a.Job.TaskGroups[0].Tasks[0].RestartPolicy = rp
225
a.Job.TaskGroups[0].Tasks[0].Config = map[string]interface{}{
226
"run_for": "10ms",
227
0 commit comments