Tweak stress test to work on server

This commit is contained in:
James Allen 2016-06-20 13:56:46 +01:00
parent 39d920682a
commit 7915c2ab6c
2 changed files with 3 additions and 3 deletions

View file

@ -1,5 +1,5 @@
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)
async = require "async"
@ -10,7 +10,7 @@ module.exports = DocUpdaterClient =
return chars.join("")
subscribeToAppliedOps: (callback = (message) ->) ->
rclient_sub = require("redis").createClient()
rclient_sub = require("redis-sharelatex").createClient(Settings.redis.web)
rclient_sub.subscribe "applied-ops"
rclient_sub.on "message", callback

View file

@ -1,4 +1,4 @@
DocUpdaterClient = require "../../acceptance/js/helpers/DocUpdaterClient"
DocUpdaterClient = require "../../acceptance/coffee/helpers/DocUpdaterClient"
# MockTrackChangesApi = require "../../acceptance/js/helpers/MockTrackChangesApi"
# MockWebApi = require "../../acceptance/js/helpers/MockWebApi"
assert = require "assert"