Commit f956f23d authored by James DeFelice's avatar James DeFelice

move the container name fix to NewTestPod to avoid breakage in other unit tests in the future

parent 5e4992aa
......@@ -344,7 +344,6 @@ func TestExecutorLaunchAndKillTask(t *testing.T) {
}
pod := NewTestPod(1)
pod.Spec.Containers[0].Name = "foo"
podTask, err := podtask.New(api.NewDefaultContext(), "",
*pod, &mesosproto.ExecutorInfo{})
assert.Equal(t, nil, err, "must be able to create a task from a pod")
......@@ -503,6 +502,7 @@ func NewTestPod(i int) *api.Pod {
Spec: api.PodSpec{
Containers: []api.Container{
{
Name: "foo",
Ports: []api.ContainerPort{
{
ContainerPort: 8000 + i,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment