diff --git a/syft/pkg/cataloger/binary/classifier_cataloger_test.go b/syft/pkg/cataloger/binary/classifier_cataloger_test.go index 45e862772753..d477d6e7fab8 100644 --- a/syft/pkg/cataloger/binary/classifier_cataloger_test.go +++ b/syft/pkg/cataloger/binary/classifier_cataloger_test.go @@ -1667,7 +1667,8 @@ func Test_Cataloger_ResilientToErrors(t *testing.T) { c := NewClassifierCataloger(DefaultClassifierCatalogerConfig()) resolver := &panicyResolver{} - _, _, _ = c.Catalog(context.Background(), resolver) + _, _, err := c.Catalog(context.Background(), resolver) + assert.Nil(t, err) // non-coordinate-based FindBy* errors are now logged and not returned assert.True(t, resolver.searchCalled) }