From d1dbf4f1271d466a49c3080dbbd7a69ddca6196f Mon Sep 17 00:00:00 2001 From: BuddahLD Date: Mon, 20 Jan 2020 21:26:05 +0200 Subject: [PATCH] Fixed wrong fail message in KeysRotatorTest --- .../android/ratchet/securechat/keysrotation/KeysRotatorTest.kt | 2 +- .../ratchet/securechat/keysrotation/KeysRotatorTest.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ratchet-android-tests/src/androidTest/java/com/virgilsecurity/android/ratchet/securechat/keysrotation/KeysRotatorTest.kt b/ratchet-android-tests/src/androidTest/java/com/virgilsecurity/android/ratchet/securechat/keysrotation/KeysRotatorTest.kt index 1ab628c..aee9ee2 100644 --- a/ratchet-android-tests/src/androidTest/java/com/virgilsecurity/android/ratchet/securechat/keysrotation/KeysRotatorTest.kt +++ b/ratchet-android-tests/src/androidTest/java/com/virgilsecurity/android/ratchet/securechat/keysrotation/KeysRotatorTest.kt @@ -265,7 +265,7 @@ class KeysRotatorTest { } storedOneTimeKeysIds.forEachIndexed { i, value -> if (cloudOneTimeKeysIds[i] == null) - fail("${cloudOneTimeKeysIds[i]} should not be null") + fail("cloudOneTimeKeysIds should not contain null\'s") if (!cloudOneTimeKeysIds[i].contentEquals(value)) { logger.warning("Could one time key $i doesn't match") diff --git a/ratchet/src/test/kotlin/com/virgilsecurity/ratchet/securechat/keysrotation/KeysRotatorTest.kt b/ratchet/src/test/kotlin/com/virgilsecurity/ratchet/securechat/keysrotation/KeysRotatorTest.kt index f068bcd..bb9a4d2 100644 --- a/ratchet/src/test/kotlin/com/virgilsecurity/ratchet/securechat/keysrotation/KeysRotatorTest.kt +++ b/ratchet/src/test/kotlin/com/virgilsecurity/ratchet/securechat/keysrotation/KeysRotatorTest.kt @@ -265,7 +265,7 @@ class KeysRotatorTest { } storedOneTimeKeysIds.forEachIndexed { i, value -> if (cloudOneTimeKeysIds[i] == null) - fail("${cloudOneTimeKeysIds[i]} should not be null") + fail("cloudOneTimeKeysIds should not contain null's") if (!cloudOneTimeKeysIds[i].contentEquals(value)) { logger.warning("Could one time key $i doesn't match")