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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user