mirror of https://github.com/k3s-io/k3s
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.pull/6/head
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