cli integration: sync container & image deletion

This makes container and image removal in the tests run synchronously.

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Upstream-commit: e09274476f889c08416a819dfb28f2c425868c6b
Component: engine
This commit is contained in:
unclejack
2014-04-04 03:22:32 +03:00
parent bc3cbf9f38
commit 375b426ef6
10 changed files with 17 additions and 17 deletions
@@ -22,7 +22,7 @@ func TestTop(t *testing.T) {
_, err = runCommand(killCmd)
errorOut(err, t, fmt.Sprintf("failed to kill container: %v", err))
go deleteContainer(cleanedContainerID)
deleteContainer(cleanedContainerID)
if !strings.Contains(out, "sleep 20") {
t.Fatal("top should've listed sleep 20 in the process list")