Merge pull request #2289 from AkihiroSuda/fix-TestGetContainerStateAfterUpdate

Fix TestGetContainerStateAfterUpdate on cgroup v2
This commit is contained in:
Michael Crosby 2020-04-06 17:30:11 -04:00 committed by GitHub
commit d5e91b1c22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -15,10 +15,11 @@ import (
)
type mockCgroupManager struct {
pids []int
allPids []int
stats *cgroups.Stats
paths map[string]string
pids []int
allPids []int
stats *cgroups.Stats
paths map[string]string
unifiedPath string
}
type mockIntelRdtManager struct {
@ -55,7 +56,7 @@ func (m *mockCgroupManager) GetPaths() map[string]string {
}
func (m *mockCgroupManager) GetUnifiedPath() (string, error) {
return "", fmt.Errorf("unimplemented")
return m.unifiedPath, nil
}
func (m *mockCgroupManager) Freeze(state configs.FreezerState) error {