From 141bc0558d7ad4cbe7b3dc91ba034d5ba18f8ff8 Mon Sep 17 00:00:00 2001 From: Brian Goff Date: Fri, 8 Dec 2017 09:20:56 -0500 Subject: [PATCH] Remove uneeded sleep in test bash loop This sleep probably doesn't work because sleep typically takes only whole numbers, to do < 1s you need to use usleep. It also is not really needed as the loop has a very low bound that will not eat up too much CPU. Signed-off-by: Brian Goff Upstream-commit: ee594dcb7d42f95048c9047d86c61447243db3cd Component: engine --- components/engine/integration-cli/docker_api_logs_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/engine/integration-cli/docker_api_logs_test.go b/components/engine/integration-cli/docker_api_logs_test.go index 0672e328db..41164df314 100644 --- a/components/engine/integration-cli/docker_api_logs_test.go +++ b/components/engine/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) { name := "logsuntil" - dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; sleep 0.5; done") + dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; done") client, err := request.NewClient() if err != nil {