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)
This commit is contained in:
unclejack
2014-04-04 03:22:32 +03:00
parent 09aa28eca0
commit e09274476f
10 changed files with 17 additions and 17 deletions

View File

@@ -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")