Fix api test
This commit is contained in:
parent
55cc8c61b3
commit
156d5845d1
|
@ -69,7 +69,6 @@ func TestCompose(t *testing.T) {
|
|||
Operand: "=",
|
||||
},
|
||||
},
|
||||
RestartPolicy: NewRestartPolicy(),
|
||||
Tasks: []*Task{
|
||||
&Task{
|
||||
Name: "task1",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue