Skip to content

Commit

Permalink
cgroup: fix the path problem due to special containor name
Browse files Browse the repository at this point in the history
Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>
  • Loading branch information
hawkingrei authored and ti-chi-bot committed Mar 29, 2023
1 parent 181fd61 commit 0c22d93
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions util/cgroup/cgroup_mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,14 @@ func TestCgroupsGetMemoryInactiveFileUsage(t *testing.T) {
},
value: 1363746816,
},
{
paths: map[string]string{
"/proc/self/cgroup": v1CgroupWithEccentricMemoryController,
"/proc/self/mountinfo": v1MountsWithEccentricMemController,
"/sys/fs/cgroup/memory/memory.stat": v1MemoryStat,
},
value: 1363746816,
},
{
paths: map[string]string{
"/proc/self/cgroup": v2CgroupWithMemoryController,
Expand Down

0 comments on commit 0c22d93

Please sign in to comment.