Merge pull request #3242 from vector-im/kegan/fix-tests-for-indexeddb

Fix broken tests caused by adding IndexedDB support
This commit is contained in:
Kegsay 2017-02-17 14:54:56 +00:00 committed by GitHub
commit 5c2049935a
1 changed files with 4 additions and 1 deletions

View File

@ -95,7 +95,10 @@ describe('joining a room', function () {
}); });
var roomView; var roomView;
httpBackend.flush().then(() => { // wait for /sync to happen
return q.delay(1).then(() => {
return httpBackend.flush();
}).then(() => {
var roomDir = ReactTestUtils.findRenderedComponentWithType( var roomDir = ReactTestUtils.findRenderedComponentWithType(
matrixChat, RoomDirectory); matrixChat, RoomDirectory);