Browse code

update test

Signed-off-by: Victor Vieux <vieux@docker.com>

Victor Vieux authored on 2014/10/07 03:18:25
Showing 1 changed files
... ...
@@ -111,8 +111,10 @@ func TestRmContainerOrphaning(t *testing.T) {
111 111
 }
112 112
 
113 113
 func TestRmInvalidContainer(t *testing.T) {
114
-	if _, _, err := runCommandWithOutput(exec.Command(dockerBinary, "rm", "unknown")); err == nil {
114
+	if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "rm", "unknown")); err == nil {
115 115
 		t.Fatal("Expected error on rm unknown container, got none")
116
+	} else if !strings.Contains(out, "failed to remove one or more containers") {
117
+		t.Fatal("Expected output to contain 'failed to remove one or more containers', got %q", out)
116 118
 	}
117 119
 
118 120
 	logDone("rm - delete unknown container")