diff --git a/cli/command/formatter/container_test.go b/cli/command/formatter/container_test.go index 0b70fa3426..bb179586ff 100644 --- a/cli/command/formatter/container_test.go +++ b/cli/command/formatter/container_test.go @@ -312,7 +312,8 @@ func TestContainerContextWriteWithNoContainers(t *testing.T) { } for _, context := range contexts { - ContainerWrite(context.context, containers) + err := ContainerWrite(context.context, containers) + assert.NilError(t, err) assert.Check(t, is.Equal(context.expected, out.String())) // Clean buffer out.Reset()