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:
commit
a605379927
1 changed files with 2 additions and 0 deletions
|
@ -673,6 +673,8 @@ func (container *Container) Mount() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (container *Container) Changes() ([]archive.Change, error) {
|
func (container *Container) Changes() ([]archive.Change, error) {
|
||||||
|
container.Lock()
|
||||||
|
defer container.Unlock()
|
||||||
return container.daemon.Changes(container)
|
return container.daemon.Changes(container)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue