Skip to content

Commit

Permalink
Fix panicing test (#681)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman authored Apr 24, 2024
1 parent ddeb1df commit 23fde69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion integrationutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func validateResults(t *testing.T, ctx context.Context, client vcsclient.VcsClie
}

func validateGitHubComments(t *testing.T, ctx context.Context, client *vcsclient.GitHubClient, testDetails *IntegrationTestDetails, prID int, comments []vcsclient.CommentInfo) {
assert.Len(t, comments, 1)
require.Len(t, comments, 1)
comment := comments[0]
assert.Contains(t, comment.Content, string(outputwriter.VulnerabilitiesPrBannerSource))

Expand Down
2 changes: 1 addition & 1 deletion scanrepository/scanrepository_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ func TestPackageTypeFromScan(t *testing.T) {
}
testScan.scanDetails = &scanSetup
scanResponse, err := testScan.scan(tmpDir)
assert.NoError(t, err)
require.NoError(t, err)
verifyTechnologyNaming(t, scanResponse.GetScaScansXrayResults(), pkg.packageType)
})
}
Expand Down

0 comments on commit 23fde69

Please sign in to comment.