fix: test

This commit is contained in:
Barış Soner Uşaklı
2019-01-24 15:17:24 -05:00
parent 893ec3638c
commit bc41848adb

View File

@@ -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);