diff --git a/cli/command/formatter/image_test.go b/cli/command/formatter/image_test.go index 7efad0a758..6df395457f 100644 --- a/cli/command/formatter/image_test.go +++ b/cli/command/formatter/image_test.go @@ -348,7 +348,8 @@ func TestImageContextWriteWithNoImage(t *testing.T) { } for _, context := range contexts { - ImageWrite(context.context, images) + err := ImageWrite(context.context, images) + assert.NilError(t, err) assert.Check(t, is.Equal(context.expected, out.String())) // Clean buffer out.Reset()