Do not remove containers from stats list on err
Before this patch, containers are silently removed from the stats list on error. This patch instead will display `--` for all fields for the container that had the error, allowing it to recover from errors. Signed-off-by: Brian Goff <cpuguy83@gmail.com> Upstream-commit: ff08036cc0d1b393106570a8c141e909d894f7d3 Component: engine
This commit is contained in:
@ -120,10 +120,7 @@ func (s *DockerSuite) TestStatsAllNoStream(c *check.C) {
|
||||
|
||||
func (s *DockerSuite) TestStatsAllNewContainersAdded(c *check.C) {
|
||||
// Windows does not support stats
|
||||
// TODO: remove SameHostDaemon
|
||||
// The reason it was added is because, there seems to be some race that makes this test fail
|
||||
// for remote daemons (namely in the win2lin CI). We highly welcome contributions to fix this.
|
||||
testRequires(c, DaemonIsLinux, SameHostDaemon)
|
||||
testRequires(c, DaemonIsLinux)
|
||||
|
||||
id := make(chan string)
|
||||
addedChan := make(chan struct{})
|
||||
|
||||
Reference in New Issue
Block a user