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:
Lantao Liu
2017-12-05 18:17:58 +00:00
parent 05bf76e05f
commit 85b943eb47
2 changed files with 38 additions and 23 deletions

View File

@@ -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)
}