mirror of
https://github.com/moby/moby.git
synced 2025-12-18 12:54:26 +03:00
Probably fix flaky test TestExecTTY
sleep 2 seconds before exec exit to make sure the output of `cat /foo` will be read Signed-off-by: Lei Jitang <leijitang@huawei.com>
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 && exit\n"))
|
||||
_, err = p.Write([]byte("cat /foo && sleep 2 && exit\n"))
|
||||
c.Assert(err, checker.IsNil)
|
||||
|
||||
chErr := make(chan error)
|
||||
|
||||
Reference in New Issue
Block a user