Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 2b29069

Browse files
authored
Merge pull request #459 from docker/fix-aci-rm
Fix the rm test without force
2 parents 37a547d + f44d29f commit 2b29069

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

multierror/multierror.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func Append(err error, errs ...error) *Error {
9595

9696
func listErrorFunc(errs []error) string {
9797
if len(errs) == 1 {
98-
return errs[0].Error()
98+
return "Error: " + errs[0].Error()
9999
}
100100

101101
messages := make([]string, len(errs))

multierror/multierror_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,5 +61,5 @@ func TestErrorOrNil(t *testing.T) {
6161

6262
err = Append(err, errors.New("error"))
6363
e := err.ErrorOrNil()
64-
assert.Error(t, e, "error")
64+
assert.Error(t, e, "Error: error")
6565
}

tests/aci-e2e/e2e-aci_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ func TestContainerRun(t *testing.T) {
268268
t.Run("rm a running container", func(t *testing.T) {
269269
res := c.RunDockerCmd("rm", container)
270270
res.Assert(t, icmd.Expected{
271-
Err: fmt.Sprintf("Error: You cannot remove a running container %s. Stop the container before attempting removal or force remove\n", container),
271+
Err: fmt.Sprintf("Error: you cannot remove a running container %s. Stop the container before attempting removal or force remove", container),
272272
ExitCode: 1,
273273
})
274274
})

0 commit comments

Comments
 (0)