Match on cri-o socket suffix only
This deals with the case that a user can configure cri-o to use /run/crio/crio.sock and get very confusing behavior. See https://github.com/cri-o/cri-o/issues/7010#issuecomment-1594149469
This commit is contained in:
@@ -25,6 +25,7 @@ import (
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/google/cadvisor/container/crio"
|
||||
cadvisorfs "github.com/google/cadvisor/fs"
|
||||
)
|
||||
|
||||
@@ -37,7 +38,7 @@ func TestImageFsInfoLabel(t *testing.T) {
|
||||
expectedError error
|
||||
}{{
|
||||
description: "LabelCrioImages should be returned",
|
||||
runtimeEndpoint: CrioSocket,
|
||||
runtimeEndpoint: crio.CrioSocket,
|
||||
expectedLabel: cadvisorfs.LabelCrioImages,
|
||||
expectedError: nil,
|
||||
}, {
|
||||
|
Reference in New Issue
Block a user