Commit ee594dcb7d42f95048c9047d86c61447243db3cd removed the
`sleep 0.5` from this test, because sleep has a full-second
precision. However, in some cases, all three log-entries
are output at the same time, causing the `--until` filter
to fail.
This patch adds back a `sleep`, but uses 1 second instead.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -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; done") |
|
| 154 |
+ dockerCmd(c, "run", "--name", name, "busybox", "/bin/sh", "-c", "for i in $(seq 1 3); do echo log$i; sleep 1; done") |
|
| 155 | 155 |
|
| 156 | 156 |
client, err := request.NewClient() |
| 157 | 157 |
if err != nil {
|