mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 13:53:40 -05:00
Fix unit tests
This commit is contained in:
parent
da89ff7172
commit
e04c946ecd
1 changed files with 1 additions and 11 deletions
|
@ -308,16 +308,6 @@ describe "RedisBackend", ->
|
|||
}, "error in redis backend")
|
||||
.should.equal true
|
||||
|
||||
describe "monitorTcpAndReconnect", ->
|
||||
beforeEach ->
|
||||
@client._monitorCluster = sinon.stub()
|
||||
@client.monitorTcpAndReconnect()
|
||||
|
||||
it "should monitor the cluster client", ->
|
||||
@client._monitorCluster
|
||||
.calledWith(@rclient_ioredis)
|
||||
.should.equal true
|
||||
|
||||
describe "_healthCheckNodeRedisClient", ->
|
||||
beforeEach ->
|
||||
@redis.activeHealthCheckRedis = sinon.stub().returns @healthCheck = {
|
||||
|
@ -381,7 +371,7 @@ describe "RedisBackend", ->
|
|||
@nodes[0].ping = (cb) -> cb()
|
||||
@nodes[1].ping = (cb) -> # Just hang
|
||||
|
||||
it "should return an error", ->
|
||||
it "should return an error", (done) ->
|
||||
@client._healthCheckClusterClient { rclient: @rclient_ioredis }, (error) ->
|
||||
error.message.should.equal "ioredis node ping check timed out"
|
||||
done()
|
||||
|
|
Loading…
Reference in a new issue