1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2026-01-03 23:22:30 +03:00

stop client after each test

This commit is contained in:
Hubert Chathi
2019-03-04 16:59:54 -05:00
parent 526da71992
commit 98fdcabc00

View File

@@ -139,6 +139,11 @@ describe("Crypto", function() {
await bobClient.initCrypto();
});
afterEach(async function() {
aliceClient.stopClient();
bobClient.stopClient();
});
it(
"does not cancel keyshare requests if some messages are not decrypted",
async function() {
@@ -266,9 +271,6 @@ describe("Crypto", function() {
// the room key request should be gone since we've now decypted everything
expect(await cryptoStore.getOutgoingRoomKeyRequest(roomKeyRequestBody))
.toNotExist();
aliceClient.stopClient();
bobClient.stopClient();
},
);
});