mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
libct/cg/TestGetHugePageSizeImpl: only log errors
This: > === RUN TestGetHugePageSizeImpl > utils_test.go:504: (input [hugepages-akB], error strconv.Atoi: parsing "a": invalid syntax) feels like an error but it's not. Only log errors. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
This commit is contained in:
@@ -501,9 +501,8 @@ func TestGetHugePageSizeImpl(t *testing.T) {
|
||||
warns.Reset()
|
||||
output, err := getHugePageSizeFromFilenames(c.input)
|
||||
if err != nil {
|
||||
t.Logf("(input %v, error %v)", c.input, err)
|
||||
if !c.isErr {
|
||||
t.Error("unexpected error ^^^^")
|
||||
t.Errorf("input %v, expected nil, got error: %v", c.input, err)
|
||||
}
|
||||
// no more checks
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user