increase the auto compile limit a little

This commit is contained in:
Henry Oswald 2015-02-18 21:27:59 +00:00
parent 21a01d94d4
commit f8e3fa6308
2 changed files with 4 additions and 4 deletions

View file

@ -71,9 +71,9 @@ module.exports = CompileManager =
return callback(null, true)
opts =
endpointName:"auto_compile"
timeInterval:15
timeInterval:20
subjectName:"everyone"
throttle: 15
throttle: 25
rateLimiter.addCount opts, (err, canCompile)->
if err?
canCompile = false

View file

@ -241,9 +241,9 @@ describe "CompileManager", ->
@ratelimiter.addCount.callsArgWith(1, null, true)
@CompileManager._checkIfAutoCompileLimitHasBeenHit true, (err, canCompile)=>
args = @ratelimiter.addCount.args[0][0]
args.throttle.should.equal 15
args.throttle.should.equal 25
args.subjectName.should.equal "everyone"
args.timeInterval.should.equal 15
args.timeInterval.should.equal 20
args.endpointName.should.equal "auto_compile"
canCompile.should.equal true
done()