mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Extract event processing to a common function for testing.
We keep only one logic to test event related behavior that will help us diagnose flacky event errors. Signed-off-by: David Calavera <david.calavera@gmail.com>
This commit is contained in:
parent
f4ea3b2cb1
commit
af51df20bd
4 changed files with 172 additions and 124 deletions
|
|
@ -97,7 +97,7 @@ func (daemon *Daemon) ImportImage(src string, newRef reference.Named, msg string
|
|||
}
|
||||
}
|
||||
|
||||
outStream.Write(sf.FormatStatus("", id.String()))
|
||||
daemon.EventsService.Log("import", id.String(), "")
|
||||
outStream.Write(sf.FormatStatus("", id.String()))
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue