Skip to content

Commit a49df98

Browse files
authored
Merge pull request #3468 from crosbymichael/custom-cgroup
Improve custom cgroup test
2 parents e04f959 + f68186e commit a49df98

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

daemon_config_linux_test.go

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,8 +241,16 @@ version = 1
241241

242242
defer cleanup()
243243

244-
for k, v := range cgroupPath {
245-
if k == "rmda" {
244+
paths := []string{
245+
"devices",
246+
"memory",
247+
"cpu",
248+
"blkio",
249+
}
250+
251+
for _, p := range paths {
252+
v := cgroupPath[p]
253+
if v == "" {
246254
continue
247255
}
248256
path := filepath.Join(v, customCgroup)

0 commit comments

Comments
 (0)