From 0e16eacad44f1485d6857a61e2e7690e0a37ddec Mon Sep 17 00:00:00 2001 From: Lei Jitang Date: Thu, 10 Dec 2015 04:13:58 -0500 Subject: [PATCH] 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 --- integration-cli/docker_cli_exec_unix_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/integration-cli/docker_cli_exec_unix_test.go b/integration-cli/docker_cli_exec_unix_test.go index 1d718eeade..a50d580de3 100644 --- a/integration-cli/docker_cli_exec_unix_test.go +++ b/integration-cli/docker_cli_exec_unix_test.go @@ -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)