diff --git a/Dockerfile b/Dockerfile index d73fa1b7dc..befa3bdb55 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,7 @@ FROM node:boron # The used solution is suggested here https://github.com/npm/npm/issues/16807#issuecomment-313591975 RUN yarn global add npm@5 # Install global packages -RUN npm install -g gulp mocha +RUN npm install -g gulp-cli mocha # Clone Habitica repo and install dependencies RUN mkdir -p /usr/src/habitrpg diff --git a/test/api/v3/integration/chat/POST-chat_seen.test.js b/test/api/v3/integration/chat/POST-chat_seen.test.js index febd522c15..b247af13b0 100644 --- a/test/api/v3/integration/chat/POST-chat_seen.test.js +++ b/test/api/v3/integration/chat/POST-chat_seen.test.js @@ -25,11 +25,12 @@ describe('POST /groups/:id/chat/seen', () => { }); it('clears new messages for a guild', async () => { + await sleep(1); await guildMember.sync(); const initialNotifications = guildMember.notifications.length; await guildMember.post(`/groups/${guild._id}/chat/seen`); - await sleep(0.5); + await sleep(1); let guildThatHasSeenChat = await guildMember.get('/user'); @@ -59,11 +60,12 @@ describe('POST /groups/:id/chat/seen', () => { }); it('clears new messages for a party', async () => { + await sleep(1); await partyMember.sync(); const initialNotifications = partyMember.notifications.length; await partyMember.post(`/groups/${party._id}/chat/seen`); - await sleep(0.5); + await sleep(1); let partyMemberThatHasSeenChat = await partyMember.get('/user');