Commit f16abee1 authored by Daniel Smith's avatar Daniel Smith

Merge pull request #6653 from yifan-gu/fix_pid_test

kubelet/fake_docker_client: Use self's PID instead of 42 in testing.
parents 629d9465 12b382ce
......@@ -18,6 +18,7 @@ package dockertools
import (
"fmt"
"os"
"reflect"
"sort"
"sync"
......@@ -180,7 +181,7 @@ func (f *FakeDockerClient) StartContainer(id string, hostConfig *docker.HostConf
HostConfig: hostConfig,
State: docker.State{
Running: true,
Pid: 42,
Pid: os.Getpid(),
},
NetworkSettings: &docker.NetworkSettings{IPAddress: "1.2.3.4"},
}
......
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