From b976a672b82a848afb52bee50287d35622dd312a Mon Sep 17 00:00:00 2001 From: Wei Fu Date: Thu, 14 Feb 2019 10:13:56 +0800 Subject: [PATCH] test: increate the memory limit to TestRunWithMemoryswap2x For the CVE-2019-5736, the runC will copy the binary during initializing process in container. The binary is about 11M so that it will make the case fail. Based on this, we should increate to 20m. Signed-off-by: Wei Fu --- test/cli_run_memory_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/cli_run_memory_test.go b/test/cli_run_memory_test.go index 3444eee6a..3bb62a515 100644 --- a/test/cli_run_memory_test.go +++ b/test/cli_run_memory_test.go @@ -75,8 +75,8 @@ func (suite *PouchRunMemorySuite) TestRunWithMemoryswap(c *check.C) { // test memory swap should be 2x memory if not specify it. cname = "TestRunWithMemoryswap2x" - memory = "10m" - expected = 2 * 10 * m + memory = "20m" + expected = 2 * 20 * m res = command.PouchRun("run", "-d", "-m", memory, "--name", cname, busyboxImage, "sleep", sleep)