Skip to content

Commit

Permalink
test: fix
Browse files Browse the repository at this point in the history
Signed-off-by: knqyf263 <[email protected]>
  • Loading branch information
knqyf263 committed Jan 22, 2025
1 parent e0b3643 commit d8c208b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/vulnsrc/glad/glad_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func TestVulnSrc_Update(t *testing.T) {
{
name: "sad path",
dir: filepath.Join("testdata", "sad"),
wantErr: "failed to decode GLAD",
wantErr: "failed to decode GitLab Advisory Database",
},
}
for _, tt := range tests {
Expand Down
2 changes: 1 addition & 1 deletion pkg/vulnsrc/suse-cvrf/suse-cvrf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ func TestGetOSVersion(t *testing.T) {
}
for _, tc := range testCases {
t.Run(tc.inputPlatformName, func(t *testing.T) {
vs := VulnSrc{} // Create VulnSrc instance
vs := NewVulnSrc(OpenSUSE)
actual := vs.getOSVersion(tc.inputPlatformName)
assert.Equal(t, tc.expectedPlatformName, actual, fmt.Sprintf("input data: %s", tc.inputPlatformName))
})
Expand Down

0 comments on commit d8c208b

Please sign in to comment.