mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-17 15:50:10 +00:00
kubelet: Update FakeDockerClient used in integration tests
This updates the mock for the docker client used in integration tests to include the engine version in its VersionInfo response.
This commit is contained in:
parent
fff8a7c371
commit
66c99d5e9c
@ -275,7 +275,7 @@ func getDockerClient(dockerEndpoint string) (*docker.Client, error) {
|
||||
func ConnectToDockerOrDie(dockerEndpoint string) DockerInterface {
|
||||
if dockerEndpoint == "fake://" {
|
||||
return &FakeDockerClient{
|
||||
VersionInfo: docker.Env{"ApiVersion=1.18"},
|
||||
VersionInfo: docker.Env{"ApiVersion=1.18", "Version=1.6.0"},
|
||||
}
|
||||
}
|
||||
client, err := getDockerClient(dockerEndpoint)
|
||||
|
Loading…
Reference in New Issue
Block a user