mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
update test
Signed-off-by: Victor Vieux <vieux@docker.com>
This commit is contained in:
parent
c68e6b15a5
commit
3e473c08b4
1 changed files with 3 additions and 1 deletions
|
@ -111,8 +111,10 @@ func TestRmContainerOrphaning(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func TestRmInvalidContainer(t *testing.T) {
|
func TestRmInvalidContainer(t *testing.T) {
|
||||||
if _, _, err := runCommandWithOutput(exec.Command(dockerBinary, "rm", "unknown")); err == nil {
|
if out, _, err := runCommandWithOutput(exec.Command(dockerBinary, "rm", "unknown")); err == nil {
|
||||||
t.Fatal("Expected error on rm unknown container, got none")
|
t.Fatal("Expected error on rm unknown container, got none")
|
||||||
|
} else if !strings.Contains(out, "failed to remove one or more containers") {
|
||||||
|
t.Fatal("Expected output to contain 'failed to remove one or more containers', got %q", out)
|
||||||
}
|
}
|
||||||
|
|
||||||
logDone("rm - delete unknown container")
|
logDone("rm - delete unknown container")
|
||||||
|
|
Loading…
Reference in a new issue