Use one big info struct before we change info to an array.
Signed-off-by: Lantao Liu <lantaol@google.com>
This commit is contained in:
@@ -153,9 +153,10 @@ func TestToCRIContainerInfo(t *testing.T) {
|
||||
)
|
||||
assert.NoError(t, err)
|
||||
|
||||
info := toCRIContainerInfo(context.Background(),
|
||||
info, err := toCRIContainerInfo(context.Background(),
|
||||
container,
|
||||
false)
|
||||
assert.NoError(t, err)
|
||||
assert.Nil(t, info)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user