Browse Source

close pipe after using pipe

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
yuexiao-wang 9 years ago
parent
commit
256310e962
1 changed files with 1 additions and 0 deletions
  1. 1 0
      integration-cli/docker_cli_attach_test.go

+ 1 - 0
integration-cli/docker_cli_attach_test.go

@@ -53,6 +53,7 @@ func (s *DockerSuite) TestAttachMultipleAndRestart(c *check.C) {
 			if err != nil {
 				c.Fatal(err)
 			}
+			defer out.Close()
 
 			if err := cmd.Start(); err != nil {
 				c.Fatal(err)