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

View File

@ -27,8 +27,8 @@ func TestCommitAfterContainerIsDone(t *testing.T) {
out, _, err = runCommandWithOutput(inspectCmd)
errorOut(err, t, fmt.Sprintf("failed to inspect image: %v %v", out, err))
go deleteContainer(cleanedContainerID)
go deleteImages(cleanedImageID)
deleteContainer(cleanedContainerID)
deleteImages(cleanedImageID)
logDone("commit - echo foo and commit the image")
}