chore: docker: use correct gulp cli, tests: try to reduce timeouts

This commit is contained in:
Matteo Pagliazzi 2018-02-10 11:14:01 +01:00
parent b4cbcb172b
commit 7abfd1d510
2 changed files with 5 additions and 3 deletions

View file

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

View file

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