From c72d29571920041756a69be63bdc7f5c61aab05f Mon Sep 17 00:00:00 2001 From: Laurent Goderre Date: Thu, 4 Jan 2024 12:54:52 -0500 Subject: [PATCH] Fix diff error obfuscating binary test failures message (#2468) Signed-off-by: Laurent Goderre --- syft/pkg/cataloger/binary/cataloger_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syft/pkg/cataloger/binary/cataloger_test.go b/syft/pkg/cataloger/binary/cataloger_test.go index d38de2e41..d03b18191 100644 --- a/syft/pkg/cataloger/binary/cataloger_test.go +++ b/syft/pkg/cataloger/binary/cataloger_test.go @@ -953,8 +953,8 @@ func assertPackagesAreEqual(t *testing.T, expected pkg.Package, p pkg.Package) { cmp.Transformer("Locations", func(l file.LocationSet) []file.Location { return l.ToSlice() }), - cmpopts.IgnoreUnexported(pkg.Package{}, file.Location{}), - cmpopts.IgnoreFields(pkg.Package{}, "CPEs", "FoundBy", "MetadataType", "Type"), + cmpopts.IgnoreUnexported(pkg.Package{}, file.LocationData{}), + cmpopts.IgnoreFields(pkg.Package{}, "CPEs", "FoundBy", "Type", "Locations", "Licenses"), )) } }