diff --git a/spec/unit/crypto/backup.spec.js b/spec/unit/crypto/backup.spec.js index 3a3ed3a97..79f956fb0 100644 --- a/spec/unit/crypto/backup.spec.js +++ b/spec/unit/crypto/backup.spec.js @@ -441,6 +441,10 @@ describe("MegolmBackup", function() { return client.initCrypto(); }); + afterEach(function() { + client.stopClient(); + }); + it('can restore from backup', function() { client._http.authedRequest = function() { return Promise.resolve(KEY_BACKUP_DATA);