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

Merge pull request #6059 from erikh/fix-tests

Fix race condition in CLI tests: diff was not acquiring a container lock
This commit is contained in:
Victor Vieux 2014-05-27 13:19:32 -07:00
commit a605379927

View file

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