From 67a385088987714e8601824d9096175795dcc531 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9rgio=20Santos?= Date: Tue, 31 May 2022 12:20:14 +0100 Subject: [PATCH] fix(deps): Update awala-keystore-file to 1.6.1 and poweb to 1.5.26 (#236) --- lib/build.gradle | 10 +++++----- .../awaladroid/messaging/OutgoingMessageTest.kt | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/build.gradle b/lib/build.gradle index 7774ef56..2317c340 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -65,9 +65,9 @@ dependencies { // Awala implementation 'tech.relaycorp:awala:1.65.0' - implementation 'tech.relaycorp:awala-keystore-file:1.6.0' - implementation 'tech.relaycorp:poweb:1.5.24' - testImplementation 'tech.relaycorp:awala-testing:1.5.1' + implementation 'tech.relaycorp:awala-keystore-file:1.6.1' + implementation 'tech.relaycorp:poweb:1.5.26' + testImplementation 'tech.relaycorp:awala-testing:1.5.2' // Security implementation 'androidx.security:security-crypto:1.1.0-alpha03' @@ -81,7 +81,7 @@ dependencies { testImplementation 'androidx.test:core:1.4.0' testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutinesVersion" testImplementation 'org.robolectric:robolectric:4.8.1' - testImplementation 'org.mockito:mockito-inline:4.5.1' + testImplementation 'org.mockito:mockito-inline:4.6.0' testImplementation 'com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0' testImplementation 'io.github.hakky54:logcaptor:2.7.10' @@ -90,7 +90,7 @@ dependencies { androidTestImplementation 'androidx.test:rules:1.4.0' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$kotlinCoroutinesVersion" - androidTestImplementation 'org.mockito:mockito-android:4.5.1' + androidTestImplementation 'org.mockito:mockito-android:4.6.0' androidTestImplementation("com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0") { // Workaround for Android API < 26: // https://github.com/mockito/mockito/pull/2024 diff --git a/lib/src/test/java/tech/relaycorp/awaladroid/messaging/OutgoingMessageTest.kt b/lib/src/test/java/tech/relaycorp/awaladroid/messaging/OutgoingMessageTest.kt index 9b1c9ef8..b2243907 100644 --- a/lib/src/test/java/tech/relaycorp/awaladroid/messaging/OutgoingMessageTest.kt +++ b/lib/src/test/java/tech/relaycorp/awaladroid/messaging/OutgoingMessageTest.kt @@ -34,11 +34,11 @@ internal class OutgoingMessageTest : MockContextTestCase() { val message = MessageFactory.buildOutgoing(channel) - val differenceSeconds = Duration.between( + val difference = Duration.between( message.parcel.expiryDate, message.parcel.creationDate.plusDays(180) - ).seconds - assertTrue(abs(differenceSeconds) < 3) + ) + assertTrue(abs(difference.toDays()) == 0L) } @Test