mirror of
https://github.com/docker/cli.git
synced 2026-01-13 18:22:35 +03:00
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> Upstream-commit: ee594dcb7d42f95048c9047d86c61447243db3cd Component: engine
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user