mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-27 10:41:15 +00:00
fix unit tests
This commit is contained in:
parent
b3e5709b64
commit
7db882f339
1 changed files with 2 additions and 3 deletions
|
@ -15,7 +15,7 @@ describe "DrainManager", ->
|
|||
describe "startDrainTimeWindow", ->
|
||||
beforeEach ->
|
||||
@clients = []
|
||||
for i in [0..1619]
|
||||
for i in [0..5399]
|
||||
@clients[i] = {
|
||||
id: i
|
||||
emit: sinon.stub()
|
||||
|
@ -25,8 +25,7 @@ describe "DrainManager", ->
|
|||
|
||||
it "should set a drain rate fast enough", (done)->
|
||||
@DrainManager.startDrainTimeWindow(@io, 9)
|
||||
console.log(@DrainManager.startDrain.args[0])
|
||||
@DrainManager.startDrain.calledWith(@io, 3).should.equal true
|
||||
@DrainManager.startDrain.calledWith(@io, 10).should.equal true
|
||||
done()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue