mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Extend timeouts in joining tests again
this seems to work? maybe?
This commit is contained in:
parent
43f56483aa
commit
a28af8bcc6
@ -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(
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user