Skip to content

Commit 1690f87

Browse files
authored
Merge pull request element-hq#4579 from vector-im/rav/wait_longer_for_client
Deflake the joining test
2 parents 0c31c62 + 66ddf25 commit 1690f87

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120
"karma-junit-reporter": "^0.4.1",
121121
"karma-mocha": "^0.2.2",
122122
"karma-webpack": "^1.7.0",
123-
"matrix-mock-request": "^1.1.0",
123+
"matrix-mock-request": "^1.2.0",
124124
"matrix-react-test-utils": "^0.2.0",
125125
"minimist": "^1.2.0",
126126
"mkdirp": "^0.5.1",

‎test/app-tests/joining.js‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,9 @@ describe('joining a room', function () {
103103
httpBackend.when('GET', '/sync')
104104
.respond(200, {});
105105

106-
return httpBackend.flushAllExpected().then(() => {
106+
return httpBackend.flushAllExpected({
107+
timeout: 1000,
108+
}).then(() => {
107109
// wait for the directory requests
108110
httpBackend.when('POST', '/publicRooms').respond(200, {chunk: []});
109111
httpBackend.when('GET', '/thirdparty/protocols').respond(200, {});

0 commit comments

Comments
 (0)