Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit 74b59c9

Browse files
Fix test to work where cgroup is cpu,cpuacct
1 parent aa529de commit 74b59c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

main_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ func TestParseCgroups(t *testing.T) {
240240
log.Fatal("Error:", err)
241241
}
242242

243-
if val, ok := cgroups["cpu"]; ok {
244-
p := path.Join(SYSFS, "cpu", val)
243+
if val, ok := cgroups["blkio"]; ok {
244+
p := path.Join(SYSFS, "blkio", val)
245245
if _, err := os.Stat(p); os.IsNotExist(err) {
246246
log.Fatalf("Path does not exist %s", p, err)
247247
}
248248
} else {
249-
log.Fatal("Failed to find cpu cgroup", val)
249+
log.Fatal("Failed to find blkio cgroup", val)
250250
}
251251
}
252252

0 commit comments

Comments
 (0)