Skip to content

Commit

Permalink
cri: relax test for system without hugetlb
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
zhsj committed Feb 27, 2022
1 parent 5247172 commit 352a8f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cri/server/container_update_resources_linux_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
}
Expand Down
3 changes: 2 additions & 1 deletion pkg/cri/server/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ func newTestCRIService() *criService {
RootDir: testRootDir,
StateDir: testStateDir,
PluginConfig: criconfig.PluginConfig{
SandboxImage: testSandboxImage,
SandboxImage: testSandboxImage,
TolerateMissingHugetlbController: true,
},
},
imageFSPath: testImageFSPath,
Expand Down

0 comments on commit 352a8f4

Please sign in to comment.