1
0
mirror of https://github.com/moby/moby.git synced 2025-07-29 07:21:35 +03:00

Merge pull request #40595 from sfzhu93/GL_2_25

[integration] add buffer to prevent goroutine leak
This commit is contained in:
Sebastiaan van Stijn
2020-05-08 16:00:52 +02:00
committed by GitHub
22 changed files with 63 additions and 45 deletions

View File

@ -338,7 +338,7 @@ func (s *DockerSuite) TestGetStoppedContainerStats(c *testing.T) {
name := "statscontainer"
dockerCmd(c, "create", "--name", name, "busybox", "ps")
chResp := make(chan error)
chResp := make(chan error, 1)
// We expect an immediate response, but if it's not immediate, the test would hang, so put it in a goroutine
// below we'll check this on a timeout.