diff --git a/api/compose_test.go b/api/compose_test.go index bc76895a9..f4b21fcbd 100644 --- a/api/compose_test.go +++ b/api/compose_test.go @@ -69,7 +69,6 @@ func TestCompose(t *testing.T) { Operand: "=", }, }, - RestartPolicy: NewRestartPolicy(), Tasks: []*Task{ &Task{ Name: "task1", diff --git a/api/tasks_test.go b/api/tasks_test.go index 75f29996d..bbdf12550 100644 --- a/api/tasks_test.go +++ b/api/tasks_test.go @@ -8,9 +8,8 @@ import ( func TestTaskGroup_NewTaskGroup(t *testing.T) { grp := NewTaskGroup("grp1", 2) expect := &TaskGroup{ - Name: "grp1", - Count: 2, - RestartPolicy: NewRestartPolicy(), + Name: "grp1", + Count: 2, } if !reflect.DeepEqual(grp, expect) { t.Fatalf("expect: %#v, got: %#v", expect, grp)