ci: Fix flaky tests (#8468)

This commit is contained in:
Daniel
2023-03-11 09:54:05 +11:00
committed by GitHub
parent cf1b59e97b
commit 65e5879e42
10 changed files with 45 additions and 16 deletions

View File

@@ -626,6 +626,16 @@ export class Config {
return new Date(now.getTime() + this.sessionLength * 1000);
}
unregisterRateLimiters() {
let i = this.rateLimits?.length;
while (i--) {
const limit = this.rateLimits[i];
if (limit.cloud) {
this.rateLimits.splice(i, 1);
}
}
}
get invalidLinkURL() {
return this.customPages.invalidLink || `${this.publicServerURL}/apps/invalid_link.html`;
}