mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
fix build problems
This commit is contained in:
parent
580b100362
commit
dd54789e2b
2 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
redis = require("redis-sharelatex")
|
||||
|
||||
modules.export = RedisClientManager =
|
||||
createClientList: (configs...)
|
||||
module.exports = RedisClientManager =
|
||||
createClientList: (configs...) ->
|
||||
# create a dynamic list of redis clients, excluding any configurations which are not defined
|
||||
clientList = (redis.createClient(x) for x in configs when x?))
|
||||
clientList = (redis.createClient(x) for x in configs when x?)
|
||||
return clientList
|
|
@ -7,8 +7,8 @@ describe "WebsocketLoadBalancer", ->
|
|||
beforeEach ->
|
||||
@rclient = {}
|
||||
@WebsocketLoadBalancer = SandboxedModule.require modulePath, requires:
|
||||
"redis-sharelatex":
|
||||
createClient: () => @rclient
|
||||
"./RedisClientManager":
|
||||
createClientList: () => []
|
||||
"logger-sharelatex": @logger = { log: sinon.stub(), error: sinon.stub() }
|
||||
"./SafeJsonParse": @SafeJsonParse =
|
||||
parse: (data, cb) => cb null, JSON.parse(data)
|
||||
|
|
Loading…
Reference in a new issue