From 4ccc45ab0aed3f1a6bd3180e00bedc215bb58dc6 Mon Sep 17 00:00:00 2001 From: pedroGitt Date: Mon, 17 Oct 2016 16:58:19 +0200 Subject: - Update Javadoc for keys constants definitions - change return code from removeOneTimeKeysForSession() (direct value from JNI is now returned) --- .../olm-sdk/src/androidTest/java/org/matrix/olm/OlmAccountTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'java/android/OlmLibSdk/olm-sdk/src/androidTest') diff --git a/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmAccountTest.java b/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmAccountTest.java index ad875c5..70db63e 100644 --- a/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmAccountTest.java +++ b/java/android/OlmLibSdk/olm-sdk/src/androidTest/java/org/matrix/olm/OlmAccountTest.java @@ -153,7 +153,8 @@ public class OlmAccountTest { assertTrue(0 != sessionId); int sessionRetCode = mOlmAccount.removeOneTimeKeysForSession(olmSession); - assertTrue(0 == sessionRetCode); + // test against no matching keys + assertTrue(1 == sessionRetCode); olmSession.releaseSession(); sessionId = olmSession.getOlmSessionId(); -- cgit v1.2.3