Docker-DCO-1.1-Signed-off-by: Jessica Frazelle <jess@docker.com> (github: jfrazelle)
| ... | ... |
@@ -286,8 +286,14 @@ func TestEventsImageImport(t *testing.T) {
|
| 286 | 286 |
|
| 287 | 287 |
func TestEventsFilters(t *testing.T) {
|
| 288 | 288 |
since := time.Now().Unix() |
| 289 |
- cmd(t, "run", "--rm", "busybox", "true") |
|
| 290 |
- cmd(t, "run", "--rm", "busybox", "true") |
|
| 289 |
+ out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "run", "--rm", "busybox", "true")) |
|
| 290 |
+ if err != nil {
|
|
| 291 |
+ t.Fatal(out, err) |
|
| 292 |
+ } |
|
| 293 |
+ out, _, err = runCommandWithOutput(exec.Command(dockerBinary, "run", "--rm", "busybox", "true")) |
|
| 294 |
+ if err != nil {
|
|
| 295 |
+ t.Fatal(out, err) |
|
| 296 |
+ } |
|
| 291 | 297 |
eventsCmd := exec.Command(dockerBinary, "events", fmt.Sprintf("--since=%d", since), fmt.Sprintf("--until=%d", time.Now().Unix()), "--filter", "event=die")
|
| 292 | 298 |
out, exitCode, err := runCommandWithOutput(eventsCmd) |
| 293 | 299 |
if exitCode != 0 || err != nil {
|