From 8c1e221afdb5072901663e2ba7fdfc1826e510de Mon Sep 17 00:00:00 2001 From: lisa-signal Date: Fri, 6 Jun 2025 14:21:54 -0400 Subject: [PATCH] Fix chat folder test. --- .../thoughtcrime/securesms/database/ChatFolderTablesTest.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/androidTest/java/org/thoughtcrime/securesms/database/ChatFolderTablesTest.kt b/app/src/androidTest/java/org/thoughtcrime/securesms/database/ChatFolderTablesTest.kt index 8201f76ff3..8259a1c4da 100644 --- a/app/src/androidTest/java/org/thoughtcrime/securesms/database/ChatFolderTablesTest.kt +++ b/app/src/androidTest/java/org/thoughtcrime/securesms/database/ChatFolderTablesTest.kt @@ -9,6 +9,7 @@ import androidx.test.ext.junit.runners.AndroidJUnit4 import okio.ByteString.Companion.toByteString import org.junit.Assert.assertEquals import org.junit.Assert.assertNotEquals +import org.junit.Assert.assertTrue import org.junit.Before import org.junit.Rule import org.junit.Test @@ -218,9 +219,9 @@ class ChatFolderTablesTest { SignalDatabase.chatFolders.createFolder(folder4) val actualFolders = SignalDatabase.chatFolders.getCurrentChatFolders() val unreadCountAndEmptyAndMutedStatus = SignalDatabase.chatFolders.getUnreadCountAndEmptyAndMutedStatusForFolders(actualFolders) - val actualFolderIsEmpty = unreadCountAndEmptyAndMutedStatus[actualFolders.first().id]?.second + val actualFolderIsEmpty = unreadCountAndEmptyAndMutedStatus[actualFolders.first().id]!!.second - assertEquals(true, actualFolderIsEmpty) + assertTrue(actualFolderIsEmpty) } private fun createRecipients(count: Int): List {