mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 06:54:01 +00:00
Merge pull request #6924 from yujuhong/data_race
Fix data race in kubelet_test.go
This commit is contained in:
commit
fa4363d493
@ -139,7 +139,7 @@ func (f *FakeDockerClient) ListContainers(options docker.ListContainersOptions)
|
||||
if options.All {
|
||||
return append(f.ContainerList, f.ExitedContainerList...), err
|
||||
}
|
||||
return f.ContainerList, err
|
||||
return append([]docker.APIContainers{}, f.ContainerList...), err
|
||||
}
|
||||
|
||||
// InspectContainer is a test-spy implementation of DockerInterface.InspectContainer.
|
||||
|
Loading…
Reference in New Issue
Block a user