Skip to content

Commit 5c20499

Browse files
authored
Merge pull request element-hq#3242 from vector-im/kegan/fix-tests-for-indexeddb
Fix broken tests caused by adding IndexedDB support
2 parents 7509747 + d876e44 commit 5c20499

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎test/app-tests/joining.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,10 @@ describe('joining a room', function () {
9595
});
9696

9797
var roomView;
98-
httpBackend.flush().then(() => {
98+
// wait for /sync to happen
99+
return q.delay(1).then(() => {
100+
return httpBackend.flush();
101+
}).then(() => {
99102
var roomDir = ReactTestUtils.findRenderedComponentWithType(
100103
matrixChat, RoomDirectory);
101104

0 commit comments

Comments
 (0)