mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-06 15:49:01 +02:00
Merge pull request #3473 from overleaf/jpa-add-back-rate-limit-clear
[SmokeTests] add back the clearing of the overleaf-login rate-limit GitOrigin-RevId: af2f7ad84083d757416d39784f31b3fa5577c1c3
This commit is contained in:
@@ -18,6 +18,11 @@ async function clearLoginRateLimit() {
|
||||
await clearRateLimit('login', Settings.smokeTest.user)
|
||||
}
|
||||
|
||||
async function clearOverleafLoginRateLimit() {
|
||||
if (!Settings.overleaf) return
|
||||
await clearRateLimit('overleaf-login', Settings.smokeTest.rateLimitSubject)
|
||||
}
|
||||
|
||||
async function clearOpenProjectRateLimit() {
|
||||
await clearRateLimit(
|
||||
'open-project',
|
||||
@@ -27,7 +32,11 @@ async function clearOpenProjectRateLimit() {
|
||||
|
||||
async function run({ processWithTimeout, timeout }) {
|
||||
await processWithTimeout({
|
||||
work: Promise.all([clearLoginRateLimit(), clearOpenProjectRateLimit()]),
|
||||
work: Promise.all([
|
||||
clearLoginRateLimit(),
|
||||
clearOverleafLoginRateLimit(),
|
||||
clearOpenProjectRateLimit()
|
||||
]),
|
||||
timeout,
|
||||
message: 'cleanupRateLimits timed out'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user