mirror of https://github.com/docker/docs.git
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:
commit
a605379927
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue