Skip to content

Commit 1bd44a7

Browse files
committed
Merge remote-tracking branch 'origin/develop' into travis/permalink-routing
2 parents 568ff5a + 870e96a commit 1bd44a7

29 files changed

+226
-178
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,13 +319,13 @@ To provide the Olm library in a browser application:
319319

320320
To provide the Olm library in a node.js application:
321321

322-
* ``npm install https://matrix.org/packages/npm/olm/olm-2.2.2.tgz``
322+
* ``npm install https://matrix.org/packages/npm/olm/olm-3.0.0.tgz``
323323
(replace the URL with the latest version you want to use from
324324
https://matrix.org/packages/npm/olm/)
325325
* ``global.Olm = require('olm');`` *before* loading ``matrix-js-sdk``.
326326

327327
If you want to package Olm as dependency for your node.js application, you
328-
can use ``npm install https://matrix.org/packages/npm/olm/olm-2.2.2.tgz
328+
can use ``npm install https://matrix.org/packages/npm/olm/olm-3.0.0.tgz
329329
--save-optional`` (if your application also works without e2e crypto enabled)
330330
or ``--save`` (if it doesn't) to do so.
331331

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,9 @@
7474
"expect": "^1.20.2",
7575
"istanbul": "^0.4.5",
7676
"jsdoc": "^3.5.5",
77+
"loglevel": "1.6.1",
7778
"lolex": "^1.5.2",
78-
"matrix-mock-request": "^1.2.0",
79+
"matrix-mock-request": "^1.2.2",
7980
"mocha": "^5.2.0",
8081
"mocha-jenkins-reporter": "^0.4.0",
8182
"rimraf": "^2.5.4",

spec/TestClient.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,11 @@ TestClient.prototype.start = function() {
102102

103103
/**
104104
* stop the client
105+
* @return {Promise} Resolves once the mock http backend has finished all pending flushes
105106
*/
106107
TestClient.prototype.stop = function() {
107108
this.client.stopClient();
109+
return this.httpBackend.stop();
108110
};
109111

110112
/**

spec/integ/devicelist-integ-spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe("DeviceList management:", function() {
9797
});
9898

9999
afterEach(function() {
100-
aliceTestClient.stop();
100+
return aliceTestClient.stop();
101101
});
102102

103103
it("Alice shouldn't do a second /query for non-e2e-capable devices", function() {

spec/integ/matrix-client-crypto.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,10 +410,10 @@ describe("MatrixClient crypto", function() {
410410
});
411411

412412
afterEach(function() {
413-
aliTestClient.stop();
414413
aliTestClient.httpBackend.verifyNoOutstandingExpectation();
415-
bobTestClient.stop();
416414
bobTestClient.httpBackend.verifyNoOutstandingExpectation();
415+
416+
return Promise.all([aliTestClient.stop(), bobTestClient.stop()]);
417417
});
418418

419419
it("Bob uploads device keys", function() {

spec/integ/matrix-client-event-emitter.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ describe("MatrixClient events", function() {
3030
afterEach(function() {
3131
httpBackend.verifyNoOutstandingExpectation();
3232
client.stopClient();
33+
return httpBackend.stop();
3334
});
3435

3536
describe("emissions", function() {

spec/integ/matrix-client-event-timeline.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ describe("getEventTimeline support", function() {
111111
if (client) {
112112
client.stopClient();
113113
}
114+
return httpBackend.stop();
114115
});
115116

116117
it("timeline support must be enabled to work", function(done) {

spec/integ/matrix-client-methods.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ describe("MatrixClient", function() {
4141

4242
afterEach(function() {
4343
httpBackend.verifyNoOutstandingExpectation();
44+
return httpBackend.stop();
4445
});
4546

4647
describe("uploadContent", function() {

spec/integ/matrix-client-opts.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ describe("MatrixClient opts", function() {
6464

6565
afterEach(function() {
6666
httpBackend.verifyNoOutstandingExpectation();
67+
return httpBackend.stop();
6768
});
6869

6970
describe("without opts.store", function() {

spec/integ/matrix-client-retrying.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ describe("MatrixClient retrying", function() {
3636

3737
afterEach(function() {
3838
httpBackend.verifyNoOutstandingExpectation();
39+
return httpBackend.stop();
3940
});
4041

4142
xit("should retry according to MatrixScheduler.retryFn", function() {

0 commit comments

Comments
 (0)