From 085ab452a0bb9ea4fc4e95aa8484adcc0ba6f284 Mon Sep 17 00:00:00 2001 From: Richard Hansen Date: Thu, 11 Feb 2021 20:30:08 -0500 Subject: [PATCH] chat tests: Give some time to process each of the 140 chat messages This avoids overflowing socket.io's receive buffer. --- src/tests/frontend/specs/chat_load_messages.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/frontend/specs/chat_load_messages.js b/src/tests/frontend/specs/chat_load_messages.js index 8d25f13bc..dcab043e9 100644 --- a/src/tests/frontend/specs/chat_load_messages.js +++ b/src/tests/frontend/specs/chat_load_messages.js @@ -24,8 +24,8 @@ describe('chat-load-messages', function () { if (num.length === 2) num = `0${num}`; chatInput.sendkeys(`msg${num}`); 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)); });