Don't bypass the toolcache in test mode
This commit is contained in:
parent
5862bae77e
commit
96a8424f0c
56 changed files with 135 additions and 4 deletions
4
lib/feature-flags.js
generated
4
lib/feature-flags.js
generated
|
|
@ -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.`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue