mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
fix runtime issue for TestEventsFilterContainer
Signed-off-by: Daniel Antlinger <d.antlinger@gmx.at> Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
parent
036ade6c05
commit
07795c3f5d
1 changed files with 6 additions and 3 deletions
|
@ -322,12 +322,15 @@ func (s *DockerSuite) TestEventsFilterContainer(c *check.C) {
|
|||
nameID := make(map[string]string)
|
||||
|
||||
for _, name := range []string{"container_1", "container_2"} {
|
||||
out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "run", "-d", "--name", name, "busybox", "true"))
|
||||
out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "run", "--name", name, "busybox", "true"))
|
||||
if err != nil {
|
||||
c.Fatalf("Error: %v, Output: %s", err, out)
|
||||
}
|
||||
id, err := inspectField(name, "Id")
|
||||
if err != nil {
|
||||
c.Fatal(err)
|
||||
}
|
||||
nameID[name] = strings.TrimSpace(out)
|
||||
waitInspect(name, "{{.State.Runing }}", "false", 5)
|
||||
nameID[name] = id
|
||||
}
|
||||
|
||||
until := fmt.Sprintf("%d", daemonTime(c).Unix())
|
||||
|
|
Loading…
Reference in a new issue