cri: relax test for system without hugetlb

These unit tests don't check hugetlb. However by setting
TolerateMissingHugetlbController to false, these tests can't
be run on system without hugetlb (e.g. Debian buildd).

Signed-off-by: Shengjing Zhu <zhsj@debian.org>
This commit is contained in:
Shengjing Zhu 2022-02-22 01:34:13 +08:00
parent 52471721fd
commit 352a8f49f7
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,