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

@ -30,7 +30,7 @@ func TestDiffFilenameShownInOutput(t *testing.T) {
if !found {
t.Errorf("couldn't find the new file in docker diff's output: %v", out)
}
go deleteContainer(cleanCID)
deleteContainer(cleanCID)
logDone("diff - check if created file shows up")
}
@ -53,7 +53,7 @@ func TestDiffEnsureDockerinitFilesAreIgnored(t *testing.T) {
out, _, err := runCommandWithOutput(diffCmd)
errorOut(err, t, fmt.Sprintf("failed to run diff: %v %v", out, err))
go deleteContainer(cleanCID)
deleteContainer(cleanCID)
for _, filename := range dockerinitFiles {
if strings.Contains(out, filename) {
@ -74,7 +74,7 @@ func TestDiffEnsureOnlyKmsgAndPtmx(t *testing.T) {
diffCmd := exec.Command(dockerBinary, "diff", cleanCID)
out, _, err := runCommandWithOutput(diffCmd)
errorOut(err, t, fmt.Sprintf("failed to run diff: %v %v", out, err))
go deleteContainer(cleanCID)
deleteContainer(cleanCID)
expected := map[string]bool{
"C /dev": true,