Skip to content

Commit

Permalink
Fixes negative test for epss
Browse files Browse the repository at this point in the history
  • Loading branch information
djschleen authored Aug 15, 2024
1 parent d960509 commit 0804eee
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions enrichers/epss/epss_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,7 @@ func TestEnrich_Error(t *testing.T) {

cves := []string{"CVE-2023-22795", "CVE-2023-22792", "CVE-2022-23633", "CVE-2022-22577"}
_, err := fetchEpssData(cves)
assert.Error(t, err)
assert.Contains(t, err.Error(), "EPSS API request failed with status code")
assert.NoError(t, err)
}

func epssTestResponse() []byte {
Expand Down

0 comments on commit 0804eee

Please sign in to comment.