From f010150f7d49774fe230ed2444ab738129e3c4fc Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Fri, 17 Apr 2015 14:20:16 +0800 Subject: [PATCH] fix freeze systemd test Made a mistake before, freeze test doesn't use newContainer, systemd test doesn't actually work. Signed-off-by: Qiang Huang --- integration/exec_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/integration/exec_test.go b/integration/exec_test.go index 8f6719d0a..c77a99186 100644 --- a/integration/exec_test.go +++ b/integration/exec_test.go @@ -425,11 +425,12 @@ func testFreeze(t *testing.T, systemd bool) { defer remove(rootfs) config := newTemplateConfig(rootfs) + cgm := libcontainer.Cgroupfs if systemd { - config.Cgroups.Slice = "system.slice" + cgm = libcontainer.SystemdCgroups } - factory, err := libcontainer.New(root, libcontainer.Cgroupfs) + factory, err := libcontainer.New(root, cgm) ok(t, err) container, err := factory.Create("test", config)