Merge pull request #21018 from hqhq/hq_fix_race_exec_tty

Fix race condition when exec with tty
Upstream-commit: 790d8f8520d23d16cc0a141e6fd56246a45b327a
Component: engine
This commit is contained in:
David Calavera
2016-03-10 08:27:54 -08:00
2 changed files with 7 additions and 5 deletions
@@ -49,7 +49,7 @@ func (s *DockerSuite) TestExecTTY(c *check.C) {
c.Assert(err, checker.IsNil)
defer p.Close()
_, err = p.Write([]byte("cat /foo && sleep 2 && exit\n"))
_, err = p.Write([]byte("cat /foo && exit\n"))
c.Assert(err, checker.IsNil)
chErr := make(chan error)