From b212c003110ab9827a8932e8f6b0f9ab7b7901af Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Mon, 14 Nov 2016 16:33:54 +0000 Subject: [PATCH] Fix acceptance tests, use the correct method of getting redis key. --- services/web/test/acceptance/coffee/helpers/redis.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/test/acceptance/coffee/helpers/redis.coffee b/services/web/test/acceptance/coffee/helpers/redis.coffee index dd98a39b59..9aecf6b387 100644 --- a/services/web/test/acceptance/coffee/helpers/redis.coffee +++ b/services/web/test/acceptance/coffee/helpers/redis.coffee @@ -11,11 +11,11 @@ rclient = UserSessionsRedis.client() module.exports = getUserSessions: (user, callback=(err, sessionsSet)->) -> - rclient.smembers "UserSessions:{#{user._id}}", (err, result) -> + rclient.smembers UserSessionsRedis.sessionSetKey(user), (err, result) -> return callback(err, result) clearUserSessions: (user, callback=(err)->) -> - sessionSetKey = "UserSessions:{#{user._id}}" + sessionSetKey = UserSessionsRedis.sessionSetKey(user) rclient.smembers sessionSetKey, (err, sessionKeys) -> if err return callback(err)