Add missing account releaseAccount for test01VerifyEd25519Signing()

This commit is contained in:
pedroGitt 2016-10-24 15:30:55 +02:00
parent 332d9d0c09
commit 3f60e62827

View file

@ -61,7 +61,7 @@ public class OlmUtilityTest {
String messageSignature = account.signMessage(message); String messageSignature = account.signMessage(message);
assertNotNull(messageSignature); assertNotNull(messageSignature);
// get identity key // get identities key (finger print key)
JSONObject identityKeysJson = account.identityKeys(); JSONObject identityKeysJson = account.identityKeys();
assertNotNull(identityKeysJson); assertNotNull(identityKeysJson);
try { try {
@ -82,12 +82,13 @@ public class OlmUtilityTest {
assertTrue(String.valueOf(errorMsg).isEmpty()); assertTrue(String.valueOf(errorMsg).isEmpty());
// check a bad signature is detected and the error message is not empty // check a bad signature is detected and the error message is not empty
messageSignature = "Bad signature Bad signature Bad signature.."; String badSignature = "Bad signature Bad signature Bad signature..";
isVerified = utility.verifyEd25519Signature(messageSignature, fingerPrintKey, message, errorMsg); isVerified = utility.verifyEd25519Signature(badSignature, fingerPrintKey, message, errorMsg);
assertFalse(isVerified); assertFalse(isVerified);
assertFalse(String.valueOf(errorMsg).isEmpty()); assertFalse(String.valueOf(errorMsg).isEmpty());
utility.releaseUtility(); utility.releaseUtility();
account.releaseAccount();
} }