mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Tweak stress test to work on server
This commit is contained in:
parent
39d920682a
commit
7915c2ab6c
2 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
Settings = require('settings-sharelatex')
|
Settings = require('settings-sharelatex')
|
||||||
rclient = require("redis").createClient(Settings.redis.web)
|
rclient = require("redis-sharelatex").createClient(Settings.redis.web)
|
||||||
request = require("request").defaults(jar: false)
|
request = require("request").defaults(jar: false)
|
||||||
async = require "async"
|
async = require "async"
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@ module.exports = DocUpdaterClient =
|
||||||
return chars.join("")
|
return chars.join("")
|
||||||
|
|
||||||
subscribeToAppliedOps: (callback = (message) ->) ->
|
subscribeToAppliedOps: (callback = (message) ->) ->
|
||||||
rclient_sub = require("redis").createClient()
|
rclient_sub = require("redis-sharelatex").createClient(Settings.redis.web)
|
||||||
rclient_sub.subscribe "applied-ops"
|
rclient_sub.subscribe "applied-ops"
|
||||||
rclient_sub.on "message", callback
|
rclient_sub.on "message", callback
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
DocUpdaterClient = require "../../acceptance/js/helpers/DocUpdaterClient"
|
DocUpdaterClient = require "../../acceptance/coffee/helpers/DocUpdaterClient"
|
||||||
# MockTrackChangesApi = require "../../acceptance/js/helpers/MockTrackChangesApi"
|
# MockTrackChangesApi = require "../../acceptance/js/helpers/MockTrackChangesApi"
|
||||||
# MockWebApi = require "../../acceptance/js/helpers/MockWebApi"
|
# MockWebApi = require "../../acceptance/js/helpers/MockWebApi"
|
||||||
assert = require "assert"
|
assert = require "assert"
|
||||||
|
|
Loading…
Reference in a new issue