Skip to content

Commit

Permalink
fix: more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Jul 22, 2020
1 parent 65395ae commit a46adb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions public/openapi/read.yaml
Expand Up @@ -2204,10 +2204,8 @@ paths:
type: boolean
runJobs:
type: boolean
nullable: true
jobsDisabled:
type: boolean
nullable: true
git:
type: object
properties:
Expand Down
3 changes: 2 additions & 1 deletion src/messaging/rooms.js
Expand Up @@ -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;
};
Expand Down
2 changes: 1 addition & 1 deletion test/mocks/databasemock.js
Expand Up @@ -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();

Expand Down

0 comments on commit a46adb3

Please sign in to comment.