From 096fcd06441f36f7e2f188b777c0aa0de021df4d Mon Sep 17 00:00:00 2001 From: knqyf263 Date: Wed, 2 Oct 2024 14:18:32 +0400 Subject: [PATCH] test: fix expected file path Signed-off-by: knqyf263 --- pkg/fanal/analyzer/pkg/rpm/archive_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/fanal/analyzer/pkg/rpm/archive_test.go b/pkg/fanal/analyzer/pkg/rpm/archive_test.go index a89795b27f07..b9ac0a44ee53 100644 --- a/pkg/fanal/analyzer/pkg/rpm/archive_test.go +++ b/pkg/fanal/analyzer/pkg/rpm/archive_test.go @@ -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", @@ -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", },