chat tests: Give some time to process each of the 140 chat messages

This avoids overflowing socket.io's receive buffer.
pull/4750/head
Richard Hansen 2021-02-11 20:30:08 -05:00
parent 020df75677
commit 085ab452a0
1 changed files with 1 additions and 1 deletions

View File

@ -24,8 +24,8 @@ describe('chat-load-messages', function () {
if (num.length === 2) num = `0${num}`; if (num.length === 2) num = `0${num}`;
chatInput.sendkeys(`msg${num}`); chatInput.sendkeys(`msg${num}`);
chatInput.sendkeys('{enter}'); chatInput.sendkeys('{enter}');
await helper.waitForPromise(() => chatText.children('p').length === i);
} }
await helper.waitForPromise(() => chatText.children('p').length === messages, 60000);
await new Promise((resolve) => helper.newPad(() => resolve(), padName)); await new Promise((resolve) => helper.newPad(() => resolve(), padName));
}); });