Don't bypass the toolcache in test mode

This commit is contained in:
Henry Mercer 2022-08-16 14:12:04 +01:00
parent 5862bae77e
commit 96a8424f0c
56 changed files with 135 additions and 4 deletions

4
lib/feature-flags.js generated
View file

@ -37,6 +37,10 @@ class GitHubFeatureFlags {
this.logger = logger;
}
async getValue(flag) {
// Bypassing the toolcache is disabled in test mode.
if (flag === FeatureFlag.BypassToolcacheEnabled && util.isInTestMode()) {
return false;
}
const response = await this.getApiResponse();
if (response === undefined) {
this.logger.debug(`No feature flags API response for ${flag}, considering it disabled.`);