mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
increased auto compile limits
This commit is contained in:
parent
149b51ddc6
commit
67e9d0724d
2 changed files with 4 additions and 4 deletions
|
@ -57,9 +57,9 @@ module.exports = CompileManager =
|
||||||
return callback(null, true)
|
return callback(null, true)
|
||||||
opts =
|
opts =
|
||||||
endpointName:"auto_compile"
|
endpointName:"auto_compile"
|
||||||
timeInterval:10
|
timeInterval:15
|
||||||
subjectName:"everyone"
|
subjectName:"everyone"
|
||||||
throttle: 5
|
throttle: 10
|
||||||
rateLimiter.addCount opts, (err, canCompile)->
|
rateLimiter.addCount opts, (err, canCompile)->
|
||||||
if err?
|
if err?
|
||||||
canCompile = false
|
canCompile = false
|
||||||
|
|
|
@ -208,9 +208,9 @@ describe "CompileManager", ->
|
||||||
@ratelimiter.addCount.callsArgWith(1, null, true)
|
@ratelimiter.addCount.callsArgWith(1, null, true)
|
||||||
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
|
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
|
||||||
args = @ratelimiter.addCount.args[0][0]
|
args = @ratelimiter.addCount.args[0][0]
|
||||||
args.throttle.should.equal 5
|
args.throttle.should.equal 10
|
||||||
args.subjectName.should.equal "everyone"
|
args.subjectName.should.equal "everyone"
|
||||||
args.timeInterval.should.equal 10
|
args.timeInterval.should.equal 15
|
||||||
args.endpointName.should.equal "auto_compile"
|
args.endpointName.should.equal "auto_compile"
|
||||||
canCompile.should.equal true
|
canCompile.should.equal true
|
||||||
done()
|
done()
|
||||||
|
|
Loading…
Reference in a new issue