From cc4d2993d1cff9ed1dbff4583b1fe1777519d072 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 29 May 2017 22:28:28 -0700 Subject: [PATCH] Remove out of date test This test is out of date with respect to the latest signed key rotation rules implemented in b92dd45 and 536dd7b. Previously we would only keep the last two signed keys, but now we keep at least three as well as requiring a minimum retention period. As a result, this test should be failing, but we haven't noticed because it's not using the `done` parameter to signal its asynchronous nature. // FREEBIE --- libtextsecure/test/generate_keys_test.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libtextsecure/test/generate_keys_test.js b/libtextsecure/test/generate_keys_test.js index 686d5275c..dd7a18caf 100644 --- a/libtextsecure/test/generate_keys_test.js +++ b/libtextsecure/test/generate_keys_test.js @@ -163,10 +163,5 @@ describe("Key generation", function() { assert.instanceOf(result.signedPreKey.signature, ArrayBuffer); validateResultSignedKey(result.signedPreKey).then(done,done); }); - it('deletes signed key 1', function() { - textsecure.storage.protocol.loadSignedPreKey(1).then(function(keyPair) { - assert.isUndefined(keyPair); - }); - }); }); });