Skip to content

Commit 352a8f4

Browse files
committed
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 <[email protected]>
1 parent 5247172 commit 352a8f4

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

pkg/cri/server/container_update_resources_linux_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ func TestUpdateOCILinuxResource(t *testing.T) {
214214
t.Logf("TestCase %q", desc)
215215
config := criconfig.Config{
216216
PluginConfig: criconfig.PluginConfig{
217-
TolerateMissingHugetlbController: false,
217+
TolerateMissingHugetlbController: true,
218218
DisableHugetlbController: false,
219219
},
220220
}

pkg/cri/server/service_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ func newTestCRIService() *criService {
5555
RootDir: testRootDir,
5656
StateDir: testStateDir,
5757
PluginConfig: criconfig.PluginConfig{
58-
SandboxImage: testSandboxImage,
58+
SandboxImage: testSandboxImage,
59+
TolerateMissingHugetlbController: true,
5960
},
6061
},
6162
imageFSPath: testImageFSPath,

0 commit comments

Comments
 (0)