fix: more tests

This commit is contained in:
Barış Soner Uşaklı
2020-07-21 20:43:16 -04:00
parent 65395ae59d
commit a46adb3fd5
3 changed files with 3 additions and 4 deletions

View File

@@ -2204,10 +2204,8 @@ paths:
type: boolean
runJobs:
type: boolean
nullable: true
jobsDisabled:
type: boolean
nullable: true
git:
type: object
properties:

View File

@@ -50,10 +50,11 @@ module.exports = function (Messaging) {
db.sortedSetAdd('chat:room:' + roomId + ':uids', now, uid),
]);
await Promise.all([
Messaging.addSystemMessage('user-join', uid, roomId), // chat owner should also get the user-join system message
Messaging.addUsersToRoom(uid, toUids, roomId),
Messaging.addRoomToUsers(roomId, [uid].concat(toUids), now),
]);
// chat owner should also get the user-join system message
await Messaging.addSystemMessage('user-join', uid, roomId);
return roomId;
};

View File

@@ -138,7 +138,7 @@ before(async function () {
nconf.set('socket.io:origins', '*:*');
nconf.set('version', packageInfo.version);
nconf.set('runJobs', false);
nconf.set('disableJobs', true);
nconf.set('jobsDisabled', true);
await meta.dependencies.check();