Browse code

Increase integration cli test memory

Signed-off-by: Euan <euank@amazon.com>

Euan authored on 2016/01/09 08:09:47
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@ func (s *DockerSuite) TestInspectOomKilledTrue(c *check.C) {
11 11
 	testRequires(c, DaemonIsLinux, memoryLimitSupport)
12 12
 
13 13
 	name := "testoomkilled"
14
-	_, exitCode, _ := dockerCmdWithError("run", "--name", name, "-m", "10MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x$x$x; done")
14
+	_, exitCode, _ := dockerCmdWithError("run", "--name", name, "--memory", "32MB", "busybox", "sh", "-c", "x=a; while true; do x=$x$x$x$x; done")
15 15
 
16 16
 	c.Assert(exitCode, checker.Equals, 137, check.Commentf("OOM exit should be 137"))
17 17
 
... ...
@@ -24,7 +24,7 @@ func (s *DockerSuite) TestInspectOomKilledFalse(c *check.C) {
24 24
 	testRequires(c, DaemonIsLinux, memoryLimitSupport)
25 25
 
26 26
 	name := "testoomkilled"
27
-	dockerCmd(c, "run", "--name", name, "-m", "10MB", "busybox", "sh", "-c", "echo hello world")
27
+	dockerCmd(c, "run", "--name", name, "--memory", "32MB", "busybox", "sh", "-c", "echo hello world")
28 28
 
29 29
 	oomKilled, err := inspectField(name, "State.OOMKilled")
30 30
 	c.Assert(oomKilled, checker.Equals, "false")