From 1b160795ed634ad27ec338fbc72ed49e2f6fa7eb Mon Sep 17 00:00:00 2001 From: Christian Kotzbauer Date: Sat, 19 Nov 2022 19:21:00 +0100 Subject: [PATCH] test: check error Signed-off-by: Christian Kotzbauer --- internal/syft/syft_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/syft/syft_test.go b/internal/syft/syft_test.go index 272de518..d74cb110 100644 --- a/internal/syft/syft_test.go +++ b/internal/syft/syft_test.go @@ -296,7 +296,8 @@ func TestApplyProxyRegistry(t *testing.T) { t.Run(v.input, func(t *testing.T) { s := syft.New("json", v.dataMap) img := &oci.RegistryImage{ImageID: v.input, Image: v.input} - s.ApplyProxyRegistry(img) + err := s.ApplyProxyRegistry(img) + assert.NoError(t, err) assert.Equal(t, v.expected, img.ImageID) }) }