From 98fdcabc00dfa2387bf44c09a6e173dc5c5ffc17 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Mon, 4 Mar 2019 16:59:54 -0500 Subject: [PATCH] stop client after each test --- spec/unit/crypto.spec.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spec/unit/crypto.spec.js b/spec/unit/crypto.spec.js index de2893090..1dbbe8653 100644 --- a/spec/unit/crypto.spec.js +++ b/spec/unit/crypto.spec.js @@ -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(); }, ); });