From 66ddf25977e5db4c5d253c9f564bdb9fec832027 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Fri, 14 Jul 2017 16:14:42 +0100 Subject: [PATCH] Deflake the joining test Just give the client longer to get started (it seems to be taking a long time to get started talking to indexeddb) --- package.json | 2 +- test/app-tests/joining.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 1db1708e2..2b1d6e82d 100644 --- a/package.json +++ b/package.json @@ -120,7 +120,7 @@ "karma-junit-reporter": "^0.4.1", "karma-mocha": "^0.2.2", "karma-webpack": "^1.7.0", - "matrix-mock-request": "^1.1.0", + "matrix-mock-request": "^1.2.0", "matrix-react-test-utils": "^0.2.0", "minimist": "^1.2.0", "mkdirp": "^0.5.1", diff --git a/test/app-tests/joining.js b/test/app-tests/joining.js index 56e282004..9e0a84c77 100644 --- a/test/app-tests/joining.js +++ b/test/app-tests/joining.js @@ -103,7 +103,9 @@ describe('joining a room', function () { httpBackend.when('GET', '/sync') .respond(200, {}); - return httpBackend.flushAllExpected().then(() => { + return httpBackend.flushAllExpected({ + timeout: 1000, + }).then(() => { // wait for the directory requests httpBackend.when('POST', '/publicRooms').respond(200, {chunk: []}); httpBackend.when('GET', '/thirdparty/protocols').respond(200, {});