Merge pull request #113 from overleaf/bg-remove-unused-redis-in-test

remove unused redis settings from rate limit unit test
This commit is contained in:
Brian Gough 2020-02-12 11:22:41 +00:00 committed by GitHub
commit 3d14e0c439

View file

@ -9,9 +9,7 @@ describe "RateLimitManager", ->
beforeEach -> beforeEach ->
@RateLimitManager = SandboxedModule.require modulePath, requires: @RateLimitManager = SandboxedModule.require modulePath, requires:
"logger-sharelatex": @logger = { log: sinon.stub() } "logger-sharelatex": @logger = { log: sinon.stub() }
"settings-sharelatex": @settings = "settings-sharelatex": @settings = {}
redis:
realtime: {}
"./Metrics": @Metrics = "./Metrics": @Metrics =
Timer: class Timer Timer: class Timer
done: sinon.stub() done: sinon.stub()