Don't clone secrets until they're needed.

This commit is contained in:
akwizgran
2013-04-11 11:29:57 +01:00
parent 72fae48aef
commit 6f8982f3fd
3 changed files with 47 additions and 51 deletions

View File

@@ -72,8 +72,6 @@ public class TransportConnectionRecogniserTest extends BriarTestCase {
new TransportConnectionRecogniser(crypto, db, transportId);
recogniser.addSecret(s);
recogniser.removeSecret(contactId, 0);
// The secret should have been erased
assertArrayEquals(new byte[32], secret);
context.assertIsSatisfied();
}