mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Merge pull request #2858 from overleaf/sk-make-lock-timeout-configurable
Make lock timeout configurable GitOrigin-RevId: c1df72a7cae56db125e090ada75b2c56ca9853bb
This commit is contained in:
@@ -38,7 +38,16 @@ describe('LockManager - getting the lock', function() {
|
||||
return { auth() {} }
|
||||
}
|
||||
},
|
||||
'settings-sharelatex': { redis: {} },
|
||||
'settings-sharelatex': {
|
||||
redis: {},
|
||||
lockManager: {
|
||||
lockTestInterval: 50,
|
||||
maxTestInterval: 1000,
|
||||
maxLockWaitTime: 10000,
|
||||
redisLockExpiry: 30,
|
||||
slowExecutionThreshold: 5000
|
||||
}
|
||||
},
|
||||
'metrics-sharelatex': {
|
||||
inc() {},
|
||||
gauge() {}
|
||||
|
||||
@@ -38,7 +38,16 @@ describe('LockManager - trying the lock', function() {
|
||||
}
|
||||
}
|
||||
},
|
||||
'settings-sharelatex': { redis: {} },
|
||||
'settings-sharelatex': {
|
||||
redis: {},
|
||||
lockManager: {
|
||||
lockTestInterval: 50,
|
||||
maxTestInterval: 1000,
|
||||
maxLockWaitTime: 10000,
|
||||
redisLockExpiry: 30,
|
||||
slowExecutionThreshold: 5000
|
||||
}
|
||||
},
|
||||
'metrics-sharelatex': {
|
||||
inc() {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user