Remove ExecutorInfo from podtask.T and create it with the TaskInfo

This commit is contained in:
Dr. Stefan Schimanski
2015-11-02 12:26:22 +01:00
parent f793ddffbb
commit 60cc93fff8
11 changed files with 60 additions and 71 deletions

View File

@@ -35,12 +35,12 @@ const (
)
func fakePodTask(id string) (*T, error) {
return New(api.NewDefaultContext(), "", api.Pod{
return New(api.NewDefaultContext(), "", &api.Pod{
ObjectMeta: api.ObjectMeta{
Name: id,
Namespace: api.NamespaceDefault,
},
}, &mesos.ExecutorInfo{})
})
}
func TestUnlimitedResources(t *testing.T) {