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

Skip TestStatsAllNewContainersAdded on remote daemons

This test is often failing on remote daemons. We tried many approaches
to fix it but none worked. In order to make the CI more reliable, this
will skip the test when running against a remote daemon (e.g. win2lin).

Signed-off-by: Tibor Vass <tibor@docker.com>
This commit is contained in:
Tibor Vass 2016-03-01 09:50:02 -05:00
parent ec2efb01d2
commit e80f86bce8

View file

@ -97,7 +97,10 @@ func (s *DockerSuite) TestStatsAllNoStream(c *check.C) {
func (s *DockerSuite) TestStatsAllNewContainersAdded(c *check.C) { func (s *DockerSuite) TestStatsAllNewContainersAdded(c *check.C) {
// Windows does not support stats // Windows does not support stats
testRequires(c, DaemonIsLinux) // 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)
id := make(chan string) id := make(chan string)
addedChan := make(chan struct{}) addedChan := make(chan struct{})