mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
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:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user