Skip to content

Commit

Permalink
update tests that require name
Browse files Browse the repository at this point in the history
  • Loading branch information
ysebyy committed Sep 10, 2024
1 parent 48e8432 commit a628313
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/collectors/jvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,11 @@ func TestJVMCollector(t *testing.T) {
const bomRoot = "/tmp/some-random-dir"
executor := new(mockShellExecutor)

firstBOMComponents := []cdx.Component{{PackageURL: "pkg:gem/[email protected]"}}
firstBOMComponents := []cdx.Component{{PackageURL: "pkg:gem/[email protected]", Name: "addressable"}}
firstBOM := new(cdx.BOM)
firstBOM.Components = &firstBOMComponents

secondBOMComponents := []cdx.Component{{PackageURL: "pkg:gem/[email protected]"}}
secondBOMComponents := []cdx.Component{{PackageURL: "pkg:gem/[email protected]", Name: "addressable"}}
secondBOM := new(cdx.BOM)
secondBOM.Components = &secondBOMComponents

Expand Down

0 comments on commit a628313

Please sign in to comment.