fix(tests): more timeouts fixes

This commit is contained in:
Matteo Pagliazzi
2018-10-23 20:23:48 +02:00
parent f79999fde7
commit 30fd530576

View File

@@ -417,7 +417,7 @@ describe('Post /groups/:groupId/invite', () => {
expect(await inviter.post(`/groups/${group._id}/invite`, { expect(await inviter.post(`/groups/${group._id}/invite`, {
uuids: generatedInvites.map(invite => invite._id), uuids: generatedInvites.map(invite => invite._id),
})).to.be.an('array'); })).to.be.an('array');
}); }).timeout(10000);
// @TODO: Add this after we are able to mock the group plan route // @TODO: Add this after we are able to mock the group plan route
xit('returns an error when a non-leader invites to a group plan', async () => { xit('returns an error when a non-leader invites to a group plan', async () => {
@@ -564,7 +564,7 @@ describe('Post /groups/:groupId/invite', () => {
expect(await inviter.post(`/groups/${party._id}/invite`, { expect(await inviter.post(`/groups/${party._id}/invite`, {
uuids: generatedInvites.map(invite => invite._id), uuids: generatedInvites.map(invite => invite._id),
})).to.be.an('array'); })).to.be.an('array');
}); }).timeout(10000);
it('does not allow 30+ members in a party', async () => { it('does not allow 30+ members in a party', async () => {
let invitesToGenerate = []; let invitesToGenerate = [];
@@ -582,6 +582,6 @@ describe('Post /groups/:groupId/invite', () => {
error: 'BadRequest', error: 'BadRequest',
message: t('partyExceedsMembersLimit', {maxMembersParty: PARTY_LIMIT_MEMBERS}), message: t('partyExceedsMembersLimit', {maxMembersParty: PARTY_LIMIT_MEMBERS}),
}); });
}); }).timeout(10000);
}); });
}); });