diff --git a/test/app-tests/joining.js b/test/app-tests/joining.js index 0aeb081a5e..d967012567 100644 --- a/test/app-tests/joining.js +++ b/test/app-tests/joining.js @@ -119,8 +119,8 @@ describe('joining a room', function () { httpBackend.when('POST', '/publicRooms').respond(200, {chunk: []}); httpBackend.when('GET', '/thirdparty/protocols').respond(200, {}); return q.all([ - httpBackend.flush('/publicRooms'), httpBackend.flush('/thirdparty/protocols'), + httpBackend.flush('/publicRooms'), ]); }).then(() => { var roomDir = ReactTestUtils.findRenderedComponentWithType( diff --git a/test/mock-request.js b/test/mock-request.js index 46d165824d..8b5b0e0a16 100644 --- a/test/mock-request.js +++ b/test/mock-request.js @@ -37,7 +37,7 @@ HttpBackend.prototype = { * @param {string} path The path to flush (optional) default: all. * @param {integer} numToFlush The number of things to flush (optional), default: all. * @param {integer=} waitTime The time (in ms) to wait for a request to happen. - * default: 5 + * default: 100 * * @return {Promise} resolves when there is nothing left to flush, with the * number of requests flushed @@ -47,7 +47,7 @@ HttpBackend.prototype = { const self = this; let flushed = 0; if (waitTime === undefined) { - waitTime = 10; + waitTime = 100; } function log(msg) {