Merge pull request #35771 from thaJeztah/fix-flaky-testloTestLogsAPIUntil

Make TestLogsAPIUntil less flaky
This commit is contained in:
Yong Tang
2017-12-12 10:12:35 -06:00
committed by GitHub

View File

@@ -151,7 +151,7 @@ func (s *DockerSuite) TestLogsAPIUntilFutureFollow(c *check.C) {
func (s *DockerSuite) TestLogsAPIUntil(c *check.C) {
name := "logsuntil"
dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; done")
dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; sleep 1; done")
client, err := request.NewClient()
if err != nil {