1
0
mirror of https://github.com/moby/moby.git synced 2025-12-04 19:23:06 +03:00

Merge pull request #24502 from allencloud/change-comparison-log-in-container-config

update comparison log in container config
This commit is contained in:
Alexander Morozov
2016-07-28 16:51:11 -07:00
committed by GitHub
4 changed files with 32 additions and 32 deletions

View File

@@ -687,7 +687,7 @@ func (s *DockerSuite) TestRunWithMemoryReservationInvalid(c *check.C) {
testRequires(c, memoryReservationSupport)
out, _, err := dockerCmdWithError("run", "-m", "500M", "--memory-reservation", "800M", "busybox", "true")
c.Assert(err, check.NotNil)
expected := "Minimum memory limit should be larger than memory reservation limit"
expected := "Minimum memory limit can not be less than memory reservation limit"
c.Assert(strings.TrimSpace(out), checker.Contains, expected, check.Commentf("run container should fail with invalid memory reservation"))
out, _, err = dockerCmdWithError("run", "--memory-reservation", "1k", "busybox", "true")