close pipe after using pipe

Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
Upstream-commit: 256310e962070cabd1383f6f15d8db6a873e2a57
Component: engine
This commit is contained in:
yuexiao-wang
2016-08-08 15:16:01 +08:00
parent b23d2ba1ff
commit c7a23ab8f6

View File

@ -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)