From bc41848adb6c2a84c74a88598b87334a179ecabf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Thu, 24 Jan 2019 15:17:24 -0500 Subject: [PATCH] fix: test --- test/messaging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/messaging.js b/test/messaging.js index fa6bc96cf7..2dcf1bc833 100644 --- a/test/messaging.js +++ b/test/messaging.js @@ -349,7 +349,7 @@ describe('Messaging Library', function () { it('should notify offline users of message', function (done) { Messaging.notificationSendDelay = 100; - db.sortedSetAdd('users:online', Date.now() - 350000, herpUid, function (err) { + db.sortedSetAdd('users:online', Date.now() - ((meta.config.onlineCutoff * 60000) + 50000), herpUid, function (err) { assert.ifError(err); socketModules.chats.send({ uid: fooUid }, { roomId: roomId, message: 'second chat message' }, function (err) { assert.ifError(err);