1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Fix race condition in CLI tests: diff was not acquiring a container lock

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
Erik Hollensbe 2014-05-27 12:04:20 -07:00
parent bdb5aa4c27
commit 8b77e0183e

View file

@ -672,6 +672,8 @@ func (container *Container) Mount() error {
}
func (container *Container) Changes() ([]archive.Change, error) {
container.Lock()
defer container.Unlock()
return container.daemon.Changes(container)
}