Browse code

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 <cpuguy83@gmail.com>

Brian Goff authored on 2017/12/08 23:20:56
Showing 1 changed files
... ...
@@ -151,7 +151,7 @@ func (s *DockerSuite) TestLogsAPIUntilFutureFollow(c *check.C) {
151 151
 
152 152
 func (s *DockerSuite) TestLogsAPIUntil(c *check.C) {
153 153
 	name := "logsuntil"
154
-	dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; sleep 0.5; done")
154
+	dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; done")
155 155
 
156 156
 	client, err := request.NewClient()
157 157
 	if err != nil {