Merge pull request #6596 from zhsj/relax-hugetlb

cri: relax test for system without hugetlb
This commit is contained in:
Michael Crosby 2022-03-01 16:39:48 -05:00 committed by GitHub
commit f57d1cf601
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -214,7 +214,7 @@ func TestUpdateOCILinuxResource(t *testing.T) {
t.Logf("TestCase %q", desc)
config := criconfig.Config{
PluginConfig: criconfig.PluginConfig{
TolerateMissingHugetlbController: false,
TolerateMissingHugetlbController: true,
DisableHugetlbController: false,
},
}

View File

@ -55,7 +55,8 @@ func newTestCRIService() *criService {
RootDir: testRootDir,
StateDir: testStateDir,
PluginConfig: criconfig.PluginConfig{
SandboxImage: testSandboxImage,
SandboxImage: testSandboxImage,
TolerateMissingHugetlbController: true,
},
},
imageFSPath: testImageFSPath,