Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kooomix committed Sep 14, 2023
1 parent f5b39ab commit 7d6495d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions attackchains/attackchainhandler_mocks.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ func CommonContainerScanSummaryResultMock(hasRelevancyData bool, relevantLabel c
Vulnerabilities: vuls,
ContainerScanID: uuid.New().String(),
SeverityStats: cscanlib.SeverityStats{Severity: "Critical"},
SeveritiesStats: []cscanlib.SeverityStats{
{Severity: "Critical", TotalCount: 1, RelevantCount: 1},
},
}
}

Expand Down
2 changes: 1 addition & 1 deletion attackchains/attackchainutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func TestIsVulnarableRelevantToAttackChange(t *testing.T) {
ImageID: "ss",
HasRelevancyData: false,
RelevantLabel: "no",
SeveritiesStats: []cscanlib.SeverityStats{{Severity: "Critical", RelevantCount: 1}},
SeveritiesStats: []cscanlib.SeverityStats{{Severity: "Critical", RelevantCount: 0, TotalCount: 1}},
},
expected: true,
wantErr: false,
Expand Down

0 comments on commit 7d6495d

Please sign in to comment.