Fix broken test (#8715)

This commit is contained in:
Martin Angers 2022-11-15 09:52:47 -05:00 committed by GitHub
parent 472c8bafb3
commit ca13659fe0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -455,7 +455,8 @@ func TestScanVulnerabilities(t *testing.T) {
CurrentInstanceChecks: "auto",
}
err := scanVulnerabilities(ctx, ds, logger, &config, appConfig, vulnPath, &fleet.LicenseInfo{Tier: "premium"})
ctx = license.NewContext(ctx, &fleet.LicenseInfo{Tier: fleet.TierPremium})
err := scanVulnerabilities(ctx, ds, logger, &config, appConfig, vulnPath)
require.NoError(t, err)
// ensure that nvd vulnerabilities are not deleted