diff --git a/integrationutils.go b/integrationutils.go index 42d7f0758..230fb93c4 100644 --- a/integrationutils.go +++ b/integrationutils.go @@ -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)) diff --git a/scanrepository/scanrepository_test.go b/scanrepository/scanrepository_test.go index b1c3e6414..09290e630 100644 --- a/scanrepository/scanrepository_test.go +++ b/scanrepository/scanrepository_test.go @@ -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) }) }