From e027c57f38678bf14ea9921f72b8be94ff78b90f Mon Sep 17 00:00:00 2001 From: Rajasekaran Date: Tue, 7 Jul 2015 21:15:59 +0530 Subject: [PATCH] Fixing test step for memory swappiness Signed-off-by: Rajasekaran --- libcontainer/integration/template_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/libcontainer/integration/template_test.go b/libcontainer/integration/template_test.go index b4858b90..7b2ff4c7 100644 --- a/libcontainer/integration/template_test.go +++ b/libcontainer/integration/template_test.go @@ -46,10 +46,11 @@ func newTemplateConfig(rootfs string) *configs.Config { {Type: configs.NEWNET}, }), Cgroups: &configs.Cgroup{ - Name: "test", - Parent: "integration", - AllowAllDevices: false, - AllowedDevices: configs.DefaultAllowedDevices, + Name: "test", + Parent: "integration", + MemorySwappiness: -1, + AllowAllDevices: false, + AllowedDevices: configs.DefaultAllowedDevices, }, MaskPaths: []string{ "/proc/kcore",