Skip to content

Commit 98fdcab

Browse files
committed
stop client after each test
1 parent 526da71 commit 98fdcab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

spec/unit/crypto.spec.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,11 @@ describe("Crypto", function() {
139139
await bobClient.initCrypto();
140140
});
141141

142+
afterEach(async function() {
143+
aliceClient.stopClient();
144+
bobClient.stopClient();
145+
});
146+
142147
it(
143148
"does not cancel keyshare requests if some messages are not decrypted",
144149
async function() {
@@ -266,9 +271,6 @@ describe("Crypto", function() {
266271
// the room key request should be gone since we've now decypted everything
267272
expect(await cryptoStore.getOutgoingRoomKeyRequest(roomKeyRequestBody))
268273
.toNotExist();
269-
270-
aliceClient.stopClient();
271-
bobClient.stopClient();
272274
},
273275
);
274276
});

0 commit comments

Comments
 (0)