diff options
author | pedroGitt <pedro.contreiras@amdocs.com> | 2016-10-24 15:30:55 +0200 |
---|---|---|
committer | pedroGitt <pedro.contreiras@amdocs.com> | 2016-10-24 15:30:55 +0200 |
commit | 3f60e62827871169ae56d209056b725f692d9930 (patch) | |
tree | 9c2bcf4a10dc856b61d2cc2b74b3a4d68ee09b2c /java/android | |
parent | 332d9d0c09c1f1f60bf970ea2b9a30cc95b9f5f5 (diff) |
Add missing account releaseAccount for test01VerifyEd25519Signing()
Diffstat (limited to 'java/android')
-rw-r--r-- | java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmUtilityTest.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmUtilityTest.java b/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmUtilityTest.java index 030bea7..12aff1f 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmUtilityTest.java +++ b/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmUtilityTest.java @@ -61,7 +61,7 @@ public class OlmUtilityTest { String messageSignature = account.signMessage(message); assertNotNull(messageSignature); - // get identity key + // get identities key (finger print key) JSONObject identityKeysJson = account.identityKeys(); assertNotNull(identityKeysJson); try { @@ -82,12 +82,13 @@ public class OlmUtilityTest { assertTrue(String.valueOf(errorMsg).isEmpty()); // check a bad signature is detected and the error message is not empty - messageSignature = "Bad signature Bad signature Bad signature.."; - isVerified = utility.verifyEd25519Signature(messageSignature, fingerPrintKey, message, errorMsg); + String badSignature = "Bad signature Bad signature Bad signature.."; + isVerified = utility.verifyEd25519Signature(badSignature, fingerPrintKey, message, errorMsg); assertFalse(isVerified); assertFalse(String.valueOf(errorMsg).isEmpty()); utility.releaseUtility(); + account.releaseAccount(); } |