Skip to content

Commit

Permalink
test: fix expected file path
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <knqyf263@gmail.com>
  • Loading branch information
knqyf263 committed Oct 2, 2024
1 parent 6b4a3a3 commit 096fcd0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/fanal/analyzer/pkg/rpm/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ func Test_rpmArchiveAnalyzer_Analyze(t *testing.T) {
{
name: "valid",
input: analyzer.AnalysisInput{
FilePath: "testdata/valid",
FilePath: "testdata/valid.rpm",
Content: lo.Must(os.Open("testdata/socat-1.7.3.2-2.el7.x86_64.rpm")), // Must run 'mage rpm:fixtures' before this test
},
want: &analyzer.AnalysisResult{
PackageInfos: []types.PackageInfo{
{
FilePath: "testdata/valid",
FilePath: "testdata/valid.rpm",
Packages: types.Packages{
{
Name: "socat",
Expand All @@ -41,6 +41,7 @@ func Test_rpmArchiveAnalyzer_Analyze(t *testing.T) {
SrcName: "socat",
SrcVersion: "1.7.3.2",
SrcRelease: "2.el7",
FilePath: "testdata/valid.rpm",
Licenses: []string{
"GPLv2",
},
Expand Down

0 comments on commit 096fcd0

Please sign in to comment.