Merge pull request #538 from hqhq/hq_fix_freeze_test

fix freeze systemd test
This commit is contained in:
Michael Crosby
2015-04-17 10:53:38 -07:00
+3 -2
View File
@@ -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)