Sfoglia il codice sorgente

Merge pull request #20817 from tiborvass/skip-TestStatsAllNewContainersAdded-remote-daemon

Skip TestStatsAllNewContainersAdded on remote daemons
David Calavera 9 anni fa
parent
commit
32d1a6cee5
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      integration-cli/docker_cli_stats_test.go

+ 4 - 1
integration-cli/docker_cli_stats_test.go

@@ -97,7 +97,10 @@ func (s *DockerSuite) TestStatsAllNoStream(c *check.C) {
 
 func (s *DockerSuite) TestStatsAllNewContainersAdded(c *check.C) {
 	// 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)
 	addedChan := make(chan struct{})