소스 검색

Bump timeouts to try and avoid unnecessary test failures on Travis

JC Brand 7 년 전
부모
커밋
b39429b229
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      spec/chatbox.js

+ 2 - 2
spec/chatbox.js

@@ -1569,7 +1569,7 @@
 
                     test_utils.waitUntil(function () {
                         return $(view.el).find('.chat-content').find('.chat-message img').length;
-                    }, 500).then(function () {
+                    }, 1000).then(function () {
                         expect(view.sendMessage).toHaveBeenCalled();
                         var msg = $(view.el).find('.chat-content').find('.chat-message').last().find('.chat-msg-content');
                         expect(msg.html()).toEqual(
@@ -1579,7 +1579,7 @@
                         test_utils.sendMessage(view, message);
                         return test_utils.waitUntil(function () {
                             return $(view.el).find('.chat-content').find('.chat-message img').length === 2;
-                        }, 500);
+                        }, 1000);
                     }).then(function () {
                         expect(view.sendMessage).toHaveBeenCalled();
                         var msg = $(view.el).find('.chat-content').find('.chat-message').last().find('.chat-msg-content');