Skip to content

Commit

Permalink
Merge pull request moby#28968 from darrenstahlmsft/TestEventsLimit
Browse files Browse the repository at this point in the history
Limit TestEventsLimit to 4 concurrent containers on Windows
  • Loading branch information
LK4D4 authored Jan 30, 2017
2 parents 1202592 + 2ec808e commit cdc79c5
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions integration-cli/docker_cli_events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,15 @@ func (s *DockerSuite) TestEventsUntag(c *check.C) {
}

func (s *DockerSuite) TestEventsLimit(c *check.C) {
// Limit to 8 goroutines creating containers in order to prevent timeouts
// creating so many containers simultaneously on Windows
sem := make(chan bool, 8)
// Windows: Limit to 4 goroutines creating containers in order to prevent
// timeouts creating so many containers simultaneously. This is a due to
// a bug in the Windows platform. It will be fixed in a Windows Update.
numContainers := 17
numConcurrentContainers := numContainers
if testEnv.DaemonPlatform() == "windows" {
numConcurrentContainers = 4
}
sem := make(chan bool, numConcurrentContainers)
errChan := make(chan error, numContainers)

args := []string{"run", "--rm", "busybox", "true"}
Expand Down

0 comments on commit cdc79c5

Please sign in to comment.