Modern Apps git

← Modern-Apps.git

findfamily: fix Duration arithmetic in PairAuthTest far-past case

Commit
ad2831586debd64310597c6c8dbad1ac8d8197c4
Author
vayun-mathur <[email protected]>
When
2026-10-13 22:05 UTC (1 month ago)
Parents
754e52f

Diff

findfamily/src/test/java/com/vayunmathur/findfamily/domain/PairAuthTest.kt
diff --git a/findfamily/src/test/java/com/vayunmathur/findfamily/domain/PairAuthTest.kt b/findfamily/src/test/java/com/vayunmathur/findfamily/domain/PairAuthTest.ktindex 046a3eeaa6..97e46eebe7 100644--- a/findfamily/src/test/java/com/vayunmathur/findfamily/domain/PairAuthTest.kt+++ b/findfamily/src/test/java/com/vayunmathur/findfamily/domain/PairAuthTest.kt@@ -5,6 +5,7 @@ import kotlin.test.assertEquals import kotlin.test.assertFalse import kotlin.test.assertNotEquals import kotlin.test.assertTrue+import kotlin.time.Duration.Companion.days import kotlin.time.Duration.Companion.minutes import kotlin.time.Duration.Companion.seconds import kotlin.time.Instant@@ -100,7 +101,7 @@ class PairAuthTest {     @Test     fun farPastIsNotFuture() {         // Stale is a different problem (handled by getLatest ranking); the clamp only kills pins.-        assertFalse(PairAuth.isFromTheFuture(now - 30 * 24 * 3600.seconds, now, now))+        assertFalse(PairAuth.isFromTheFuture(now - 30.days, now, now))     }      // --- logPreview ---