mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 21:59:00 +02:00
fix tests for redis cluster
This commit is contained in:
@@ -19,6 +19,12 @@ describe 'LockManager - releasing the lock', ()->
|
||||
error:->
|
||||
"redis-sharelatex":
|
||||
createClient : () => @client
|
||||
"settings-sharelatex": {
|
||||
redis:
|
||||
lock:
|
||||
key_schema:
|
||||
blockingKey: ({doc_id}) -> "Blocking:#{doc_id}"
|
||||
}
|
||||
"./Metrics": {inc: () ->}
|
||||
@LockManager = SandboxedModule.require(modulePath, requires: mocks)
|
||||
@lockValue = "lock-value-stub"
|
||||
|
||||
@@ -13,6 +13,12 @@ describe 'LockManager - trying the lock', ->
|
||||
auth:->
|
||||
set: @set = sinon.stub()
|
||||
"./Metrics": {inc: () ->}
|
||||
"settings-sharelatex": {
|
||||
redis:
|
||||
lock:
|
||||
key_schema:
|
||||
blockingKey: ({doc_id}) -> "Blocking:#{doc_id}"
|
||||
}
|
||||
|
||||
@callback = sinon.stub()
|
||||
@doc_id = "doc-id-123"
|
||||
|
||||
Reference in New Issue
Block a user