Browse Source

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

Make TestLogsAPIUntil less flaky
Yong Tang 7 years ago
parent
commit
1082aa759e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      integration-cli/docker_api_logs_test.go

+ 1 - 1
integration-cli/docker_api_logs_test.go

@@ -151,7 +151,7 @@ func (s *DockerSuite) TestLogsAPIUntilFutureFollow(c *check.C) {
 
 
 func (s *DockerSuite) TestLogsAPIUntil(c *check.C) {
 func (s *DockerSuite) TestLogsAPIUntil(c *check.C) {
 	name := "logsuntil"
 	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()
 	client, err := request.NewClient()
 	if err != nil {
 	if err != nil {