浏览代码

Fix failing test on Travis

JC Brand 6 年之前
父节点
当前提交
615b5b08a2
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spec/roomslist.js

+ 1 - 1
spec/roomslist.js

@@ -304,7 +304,7 @@
                 }).c('body').t('foo').tree());
                 }).c('body').t('foo').tree());
 
 
             const lview = _converse.rooms_list_view
             const lview = _converse.rooms_list_view
-            await test_utils.waitUntil(() => lview.el.querySelectorAll(".available-chatroom").length);
+            await test_utils.waitUntil(() => lview.el.querySelectorAll(".available-chatroom").length, 500);
 
 
             // If the user isn't mentioned, the counter doesn't get incremented, but the text of the groupchat is bold
             // If the user isn't mentioned, the counter doesn't get incremented, but the text of the groupchat is bold
             let room_el = lview.el.querySelector(".available-chatroom");
             let room_el = lview.el.querySelector(".available-chatroom");